Comments (4)
If it is 2., could you verify if you have this toggle switch turned on?
You are my savior! It was indeed the issue, thank you very much 👍
from serenity.
Is there a way to provide the intent to the
Http
client?
There is none, because intents are for the gateway only. Discord's HTTP API does not allow you to provide intents, even for ones that aren't associated with any gateway event in particular, like MESSAGE_CONTENT
.
from serenity.
So, is there a way to get all message content in a specific channel? Should the HTTP API always return the content? Because I am constantly seeing an empty string as the content?
from serenity.
I am honestly not sure. I haven't had the need to fetch a Message
object with the content via the HTTP API, and the documentation for the Get Channel Messages endpoint does not mention the intent at all (nor other related endpoints). I can only speculate two things:
- You may only receive the content of a message via the gateway. Similar for being able to receive the full
Guild
object rather than thePartialGuild
object you get from the HTTP API. - When you work with the gateway, to enable or disable intents you must specify them in the "Identify" payload upon first connecting to the gateway. Certain intents, however, require you to enable them first in your bot's developer settings, because they are privileged.
MESSAGE_CONTENT
is one of these. Since the HTTP API does not let you enable or disable intents much like the gateway does, it could be assumed that all intents are enabled by default. It's just that for privileged intents, they also have to be enabled in the bot settings.
If it is 2., could you verify if you have this toggle switch turned on?
from serenity.
Related Issues (20)
- Can't get members from channel HOT 1
- feat(builder): CreateAttachment stream support
- `get_channel_archived_public_threads()` seems to not be using ISO8601 for the `before` parameter HOT 1
- CreateButton::new documentation disagrees with Discord documentation HOT 2
- Typo in Example 14 Readme file HOT 1
- Silent messages HOT 3
- Method to return the start message of a thread HOT 2
- feat(http): Http Error Codes as enum? HOT 1
- Unable to build e01_basic_ping_bot HOT 6
- Unable to run successfully e01_basic_ping_bot HOT 2
- Sequence number does not get updated for invalid events
- Use External Emojis shows up twice in formatted Permissions string HOT 2
- Missing feature dependency: http requires builder
- Embed Footer, Thumbnail & Image can be local files, not only HTTP(S) HOT 1
- Implement Get Thread Member
- `ArgumentConvert` no longer uses cache due to usage of magic `to_x` methods
- Add support for Polls HOT 2
- Unable to Customize HTTP Client in Serenity Crate
- serenity's TeamMember doesn't line up with discord's TeamMember
- Missing API endpoints for guild onboarding
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serenity.