Spaces:
Running
Running
fix
Browse files
app.py
CHANGED
@@ -25,15 +25,16 @@ async def on_ready():
|
|
25 |
print(f'Logged in as {bot.user}')
|
26 |
|
27 |
if BUTTON_MESSAGE_ID:
|
28 |
-
channel = bot.get_channel(
|
29 |
if channel:
|
30 |
try:
|
31 |
-
message = await channel.fetch_message(
|
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.")
|
39 |
except discord.HTTPException as e:
|
|
|
25 |
print(f'Logged in as {bot.user}')
|
26 |
|
27 |
if BUTTON_MESSAGE_ID:
|
28 |
+
channel = bot.get_channel(1106995001155649680)
|
29 |
if channel:
|
30 |
try:
|
31 |
+
message = await channel.fetch_message(1266438263531634708)
|
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 |
+
print("message edited")
|
38 |
except discord.NotFound:
|
39 |
print(f"Message with ID {KNOWN_MESSAGE_ID} not found.")
|
40 |
except discord.HTTPException as e:
|