GuildChannelManager can delete channels from other guilds

I noticed this behaviour the other day not sure if it's expected or not. If you for example get Guild object for some guild, then do guild.channels.delete() with a channel ID for a channel from a different guild, the delete goes though. Is that supposed to happen?
4 Replies
beetle
beetle2mo ago
what do you mean by go through? as in the channel actually deletes or it just doesnt error
Ravelt
RaveltOP2mo ago
The channel deletes
beetle
beetle2mo ago
can you share your code?
Ravelt
RaveltOP2mo ago
let guild = message.client.guilds.cache.get('749707117182844928'); await guild.channels.delete('1362622281108689148'); where the channel id in the second line is from a different guild the bot is in able to reproduce it multiple times

Did you find this page helpful?