#undefined channel
1 messages · Page 1 of 1 (latest)
ok
@trail bear so basically you get any empty object?
Can u log it in console and send the output?
you dont need intents for channels right?
you need guild_channel intents
the intents integer is very suspicious
according to https://discord.com/developers/docs/topics/gateway#list-of-intents GUILDS intent is 1 << 0 which is = 1 meaning that he doesnt actually have that intent cause his intent integer is an even number
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
oh damn haha sorry didn’t see this
yeah I have avoided pretty much anything mentioning guilds
I set up a bot, configured its intent, configured an oath url, added it to a server, and then set the bot role permissions for the server and channel to match the bot oauth config and intent:
so I need to do some reading about guild channels in addition to this?
Manage channels
trying now! ty
i think you guys are mixing gateway intents and permissions, permissions of the bot are the thing that is used when the bot is being added and thats what his role contains, while intents are like the things you're requesting the discord api to allow you to do
or something along those lines
id recommend writing the intents like this because of the readabiility
I did 🙂
😛 ik youve already sent the image
talking to tonbu
kinda wondering what his intents integer allowed let me check real quick
😂
I couldn’t work out how to translate the intents I need into those flags, I just want it to post those rich media thingies
it worked fine on the old API 😢
GUILD_MESSAGE_REACTIONS, GUILD_MESSAGE_TYPING and DIRECT_MESSAGE_TYPING xd
wait i think the guide explains it well
yeah I’m going to pause this and double down on the docs
check this out
thank you both for helping!
No problem
this is basically an RSS to discord channel bot, I had a hacked together version working a few months back on the old API and I’m revisiting hoping to add some better video and image support by picking them out of the content of the RSS entries
nothing too fancy but a fun project
I might stick it on github
you guys were right I deleted the integer and I’m finally seeing a populated list of channels and no errors on my .send()