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:
@@ -337,7 +337,7 @@ class Settings(commands.Cog, name="settings"):
|
||||
@app_commands.command(name="debug")
|
||||
async def debug(self, interaction: discord.Interaction):
|
||||
if interaction.user.id not in voicelink.Config().bot_access_user:
|
||||
return await interaction.response.send_message("You are not able to use this command!")
|
||||
return await interaction.response.send_message("You are not able to use this command!", ephemeral=True)
|
||||
|
||||
memory = psutil.virtual_memory()
|
||||
disk = psutil.disk_usage(func.ROOT_DIR)
|
||||
|
||||
Reference in New Issue
Block a user