-
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: 1 comment 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.
@tokle002
Try getting the channel inside the handlers subscribed to Ready event.