diff --git a/exts/emoji_ops.py b/exts/emoji_ops.py index 855b29a..cb6c6ee 100644 --- a/exts/emoji_ops.py +++ b/exts/emoji_ops.py @@ -84,9 +84,8 @@ class AddEmojiButton(discord.ui.Button["AddEmojisView"]): """ def __init__(self, *, guild: discord.Guild, emoji: discord.PartialEmoji, **kwargs: Any) -> None: - super().__init__(**kwargs) + super().__init__(emoji=emoji, **kwargs) self.guild = guild - self.emoji = emoji self.new_emoji: discord.Emoji | None = None async def callback(self, interaction: discord.Interaction) -> None: @@ -104,7 +103,7 @@ async def callback(self, interaction: discord.Interaction) -> None: else: await self.new_emoji.delete() - self.style = discord.ButtonStyle.secondary + self.style = discord.ButtonStyle.secondary # type: ignore await interaction.response.edit_message(view=self.view) await interaction.followup.send(f"Deleted this emoji from the server: {self.emoji}", ephemeral=True) diff --git a/exts/music.py b/exts/music.py index 8cd7140..87efe34 100644 --- a/exts/music.py +++ b/exts/music.py @@ -123,7 +123,7 @@ def __init__( nodes: list[wavelink.Node] | None = None, ) -> None: super().__init__(client, channel, nodes=nodes) - self.autoplay = wavelink.AutoPlayMode.partial + self.autoplay = wavelink.AutoPlayMode.partial # type: ignore class MusicCog(commands.Cog, name="Music"): diff --git a/exts/todo.py b/exts/todo.py index a2bf837..bdd2392 100644 --- a/exts/todo.py +++ b/exts/todo.py @@ -216,8 +216,8 @@ async def callback(self, interaction: core.Interaction) -> None: # type: ignore self.label = "Mark as complete" completion_status = "incomplete" else: - self.style = discord.ButtonStyle.grey - self.label = "Mark as incomplete" + self.style = discord.ButtonStyle.grey # type: ignore + self.label = "Mark as incomplete" # type: ignore completion_status = "complete" # Adjust the view to have and display the updated to-do item, and let the user know it's updated.