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
what do you mean by go through? as in the channel actually deletes or it just doesnt error
The channel deletes
can you share your code?
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