Giter Club home page Giter Club logo

Comments (11)

HackerSmacker avatar HackerSmacker commented on May 29, 2024 1

I'll get most of these done, in addition to guides covering

  • Concord on a VAX (with native SSL)
  • Concord on Solaris 9
  • SSL certificate pinning with libcurl and Concord
  • Using Concord natively on Windows
  • Windows SSL API

from concord.

lcsmuller avatar lcsmuller commented on May 29, 2024 1

You can do that with discord_update_presence(), here is an example for reference!

from concord.

lcsmuller avatar lcsmuller commented on May 29, 2024 1

Yeah then forget about that trick.. I assumed just filling up all uint64_t bits with 1 would work. Concord automatically sets the intent for you based on the events you want to listen to, but in case you still want to set the intents manually you can use an Intents Calculator and then enter that value to discord_add_intents().

from concord.

Macintosh-Fan avatar Macintosh-Fan commented on May 29, 2024

A question about a feature: how do I set a bot's status to do not disturb then back to online in C?

from concord.

Macintosh-Fan avatar Macintosh-Fan commented on May 29, 2024

Thanks. And, is there a way to enable all intents?

from concord.

lcsmuller avatar lcsmuller commented on May 29, 2024

discord_add_intents() will do the trick, you can find some of the predefined intents here. If you want to enable all intents you may simply pass it a UINT64_MAX flag from stdint.h (doesn't work)

from concord.

Macintosh-Fan avatar Macintosh-Fan commented on May 29, 2024

discord_add_intents() will do the trick, you can find some of the predefined intents here. If you want to enable all intents you may simply pass it a UINT64_MAX flag from stdint.h

It immediately fails with that trick for some reason.

All intents should be good on the website-end of things:
image

from concord.

lcsmuller avatar lcsmuller commented on May 29, 2024

It immediately fails with that trick for some reason.

You got some logs? (make sure to enable logging at your config.json)

from concord.

Macintosh-Fan avatar Macintosh-Fan commented on May 29, 2024

It immediately fails with that trick for some reason.

You got some logs? (make sure to enable logging at your config.json)

Logging does not seem to be working with running clang main.c -o myBot -pthread -ldiscord -lcurl; ./myBot. "quiet" is also set to false in the log.

Though, at least using strerror, I get Policy not found.

from concord.

Macintosh-Fan avatar Macintosh-Fan commented on May 29, 2024

It immediately fails with that trick for some reason.

You got some logs? (make sure to enable logging at your config.json)

Sorry, my bad; works differently than I thought.

23:06:06 WARN  discord-gateway.c:358: [DISCORD_GATEWAY] CLOSE DISCORD_GATEWAY_CLOSE_REASON_INVALID_INTENTS (code: 4013, 18 bytes): 'Invalid intent(s).'
23:06:06 WARN  discord-gateway.c:394: [DISCORD_GATEWAY] Gateway will not attempt to reconnect
23:06:06 WARN  discord-gateway.c:792: [DISCORD_GATEWAY] Discord Gateway Shutdown

from concord.

Macintosh-Fan avatar Macintosh-Fan commented on May 29, 2024

Yeah then forget about that trick.. I assumed just filling up all uint64_t bits with 1 would work. Concord automatically sets the intent for you based on the events you want to listen to, but in case you still want to set the intents manually you can use an Intents Calculator and then enter that value to discord_add_intents().

That seems to work; thank you. I also just found the Discord server link lol to ask there in the future.

from concord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.