Get guild id from channel/event

I using ButtonInteractionCreateEvent and i need check guild id similar, event object don`t have param for guild id. How i can get it from channel?
Solution:
you'd have to cast it to a guild channel type using to of or ofOrNull functions
Jump to solution
1 Reply
Solution
gdude
gdude2w ago
you'd have to cast it to a guild channel type using to of or ofOrNull functions
Want results from more Discord servers?
Add your server