lunarflu HF Staff commited on
Commit
7a7bdb5
·
verified ·
1 Parent(s): f135012
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,9 +41,9 @@ async def sendlink(ctx, user: discord.User):
41
 
42
 
43
  class DMButton(Button):
44
- def __init__(self, label, style, message):
45
  super().__init__(label=label, style=style)
46
- self.message = message
47
 
48
  async def callback(self, interaction: discord.Interaction):
49
  # await interaction.user.send(self.message) # this is for DMs, but users may have DMs disabled
 
41
 
42
 
43
  class DMButton(Button):
44
+ def __init__(self, label, style, user_id):
45
  super().__init__(label=label, style=style)
46
+ self.user_id = user_id
47
 
48
  async def callback(self, interaction: discord.Interaction):
49
  # await interaction.user.send(self.message) # this is for DMs, but users may have DMs disabled