Spaces:
Running
Running
fix
Browse files
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,
|
45 |
super().__init__(label=label, style=style)
|
46 |
-
self.
|
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
|