mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-05-21 14:37:44 -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
|
n_remaining = len(messages) - idx
|
||||||
files_perm = (
|
files_perm = (
|
||||||
isinstance(channel, discord.abc.User)
|
isinstance(channel, discord.abc.User)
|
||||||
|
or channel.guild is None
|
||||||
or channel.permissions_for(channel.guild.me).attach_files
|
or channel.permissions_for(channel.guild.me).attach_files
|
||||||
)
|
)
|
||||||
options = ("more", "file") if files_perm else ("more",)
|
options = ("more", "file") if files_perm else ("more",)
|
||||||
|
|||||||
Reference in New Issue
Block a user