Coding Global Background
Coding Global

python discord

Archiviert 2 years ago
2 Nachrichten
0 Mitglieder
Erstellt 2 years ago
Aktualisiert 2 years ago
In Discord öffnen
P
rak
@client.hybrid_command(name= "ping", description= "this isnt ur wifi") async def ping(interaction : Interaction): bot_latency = round(client.latency*1000) await interaction.response.send_message(f"my good ping is {bot_latency}ms")



File "c:\Users\rakhi\Desktop\proj\discordbot.py", line 67, in ping
await interaction.response.send_message(f"my good ping is {bot_latency}ms")
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Context' object has no attribute 'response

Antworten (2)