General clean code

This commit is contained in:
Choco
2023-09-11 20:02:08 +08:00
parent e7f4118470
commit e2e6c0567e
13 changed files with 166 additions and 141 deletions

View File

@@ -59,10 +59,8 @@ class EmbedBuilderView(discord.ui.View):
except:
pass
async def interaction_check(self, interaction):
if interaction.user == self.author:
return True
return False
async def interaction_check(self, interaction: discord.Interaction):
return interaction.user == self.author
@discord.ui.button(label="Edit Content", style=discord.ButtonStyle.blurple)
async def edit_content(self, interaction: discord.Interaction, button: discord.ui.Button):