mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-03-07 04:38:35 -05:00
Fix send_interactive not working on User/Member objects (#6656)
Co-authored-by: Kowlin <git@wyvern.blue> Co-authored-by: Kowlin <10947836+Kowlin@users.noreply.github.com>
This commit is contained in:
@@ -2487,7 +2487,8 @@ class Red(
|
|||||||
ret.append(msg)
|
ret.append(msg)
|
||||||
n_remaining = len(messages) - idx
|
n_remaining = len(messages) - idx
|
||||||
files_perm = (
|
files_perm = (
|
||||||
not channel.guild or channel.permissions_for(channel.guild.me).attach_files
|
isinstance(channel, discord.abc.User)
|
||||||
|
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",)
|
||||||
if n_remaining > 0:
|
if n_remaining > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user