Removed error_log

This commit is contained in:
Choco
2024-03-22 11:29:31 +08:00
parent 9016a78125
commit 86c828fc1c
3 changed files with 1 additions and 36 deletions

View File

@@ -179,11 +179,4 @@ class DebugView(discord.ui.View):
@discord.ui.button(label='Cogs', emoji="🔃")
async def reload_cog(self, interaction: discord.Interaction, button: discord.ui.Button):
return await interaction.response.send_message("Reload Cogs", view=CogsView(self.bot), ephemeral=True)
@discord.ui.button(label='Send Logs', emoji="📥", style=discord.ButtonStyle.red)
async def send_error_logs(self, interaction: discord.Interaction, button: discord.ui.Button):
if not function.ERROR_LOGS:
return await interaction.response.send_message("Sorry there are not error logs!", ephemeral=True)
await interaction.response.send_message(file=function.gen_report(), ephemeral=True)
return await interaction.response.send_message("Reload Cogs", view=CogsView(self.bot), ephemeral=True)