python discord
Archived 2 years ago
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
