-
I'm currently facing an issue with my Discord bot where it's unable to retrieve the desired channel. Programm Class
DiscordBot Class
Someone has an idea ? :) Greetings PS: Token and Channel IDs are fake in this Code |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Try getting the channel inside the handlers subscribed to Ready event. _client.Ready += () =>
{
var channel = _client.GetChannel(1116600689100083240) as SocketTextChannel;
return Task.CompletedTask;
}; |
Beta Was this translation helpful? Give feedback.
-
How do we get a list of said channels back, their names, and Ids included. For UI configuration purposes, for instance. Thanks! |
Beta Was this translation helpful? Give feedback.
@tokle002
Try getting the channel inside the handlers subscribed to Ready event.