lunarflu HF Staff commited on
Commit
d742895
·
verified ·
1 Parent(s): bf0c0d3
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -30,7 +30,9 @@ async def on_ready():
30
  try:
31
  message = await channel.fetch_message(int(BUTTON_MESSAGE_ID))
32
  if message:
 
33
  view = ButtonView()
 
34
  await message.edit(view=view)
35
  except discord.NotFound:
36
  print(f"Message with ID {KNOWN_MESSAGE_ID} not found.")
 
30
  try:
31
  message = await channel.fetch_message(int(BUTTON_MESSAGE_ID))
32
  if message:
33
+ button = DMButton(label="Verify Discord Account", style=discord.ButtonStyle.primary, user_id=ctx.author.id)
34
  view = ButtonView()
35
+ view.add_item(button)
36
  await message.edit(view=view)
37
  except discord.NotFound:
38
  print(f"Message with ID {KNOWN_MESSAGE_ID} not found.")