mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-05-12 02:58:24 -04:00
Fix Red.send_interactive() permission check again (#6697)
This commit is contained in:
@@ -2546,6 +2546,7 @@ class Red(
|
||||
n_remaining = len(messages) - idx
|
||||
files_perm = (
|
||||
isinstance(channel, discord.abc.User)
|
||||
or channel.guild is None
|
||||
or channel.permissions_for(channel.guild.me).attach_files
|
||||
)
|
||||
options = ("more", "file") if files_perm else ("more",)
|
||||
|
||||
Reference in New Issue
Block a user