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:
Jakub Kuczys
2026-03-03 01:34:34 +01:00
committed by GitHub
parent effc390ddf
commit 07e6f1b264

View File

@@ -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: