Make messages ephemeral and bump discord.py
Make certain bot responses ephemeral to avoid spamming channels (debug command and missing-permission reply). Bump discord.py from 2.7.0 to 2.7.1 in requirements. Remove an unused Config().get_playlist_config() assignment in updatePlaylist to clean up dead code.
This commit is contained in:
2
main.py
2
main.py
@@ -191,7 +191,7 @@ class CommandCheck(discord.app_commands.CommandTree):
|
||||
|
||||
channel_perm = interaction.channel.permissions_for(interaction.guild.me)
|
||||
if not channel_perm.read_messages or not channel_perm.send_messages:
|
||||
await interaction.response.send_message("I don't have permission to read or send messages in this channel.")
|
||||
await interaction.response.send_message("I don't have permission to read or send messages in this channel.", ephemeral=True)
|
||||
return False
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user