Skip to content

Commit

Permalink
プレゼント企画コマンド実装v5
Browse files Browse the repository at this point in the history
  • Loading branch information
Syunngiku0402 committed Jan 2, 2025
1 parent 06aa16a commit c1deba0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cogs/cpresent.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@


class LOttery(discord.ui.View): # 抽選コマンド
def __init__(self):
def __init__(self, bot: commands.Bot):
super().__init__(timeout=None)
self.bot = bot

@discord.ui.button(label="応募", style=ButtonStyle.green, emoji="✅", custom_id="present")
async def pressedLotteryButton(self, interaction: discord.Interaction, button: discord.ui.button):
Expand Down Expand Up @@ -106,4 +107,4 @@ async def cmisc(

async def setup(bot: commands.Bot):
await bot.add_cog(CPresent(bot))
bot.add_view(LOttery())
bot.add_view(LOttery(bot))

0 comments on commit c1deba0

Please sign in to comment.