Removed error_log
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user