#undefined channel

1 messages · Page 1 of 1 (latest)

dusky karma
#

ok

#

@trail bear so basically you get any empty object?

#

Can u log it in console and send the output?

midnight carbon
#

you dont need intents for channels right?

dusky karma
#

you need guild_channel intents

midnight carbon
#

the intents integer is very suspicious

dusky karma
#

and guild_text for text

midnight carbon
trail bear
#

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?

dusky karma
#

Manage channels

trail bear
#

trying now! ty

dusky karma
#

I think?

#

Idk I am not sure

midnight carbon
#

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

dusky karma
#

yeah

#

I was confused about that window anyway

midnight carbon
#

id recommend writing the intents like this because of the readabiility

midnight carbon
#

talking to tonbu

#

kinda wondering what his intents integer allowed let me check real quick

dusky karma
#

😂

trail bear
#

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 😢

midnight carbon
#

GUILD_MESSAGE_REACTIONS, GUILD_MESSAGE_TYPING and DIRECT_MESSAGE_TYPING xd

#

wait i think the guide explains it well

trail bear
#

yeah I’m going to pause this and double down on the docs

midnight carbon
#

check this out

trail bear
#

thank you both for helping!

dusky karma
#

No problem

trail bear
#

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

trail bear
#

you guys were right I deleted the integer and I’m finally seeing a populated list of channels and no errors on my .send()