Open bakirov-eldar opened 9 months ago
GetOrDownloadAsync()
on the cacheable)if (channel is IGuildChannel guildChannel)
)guildChannel.GuildId
- Get the channel (call
GetOrDownloadAsync()
on the cacheable)- check whether the channel is a guild channel (
if (channel is IGuildChannel guildChannel)
)guildChannel.GuildId
Why would I need to load additional data if I just want to get the guild ID directly from the API event?
That's a good question, but changing it at this point would be a breaking change. And most likely you have the channel cached already, so it won't download any additional data
public event Func<Cacheable<IMessage, ulong>, Cacheable<IMessageChannel, ulong>, Task> MessageDeleted
How can i get GuildId from this event?