#python discord

2 messages · Page 1 of 1 (latest)

hasty night
#

@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

blissful moth
#

Thanks for your question :clap:, if someone gives you an answer it would be great if you thanked them with a :white_check_mark: in response. This response will earn you both points for special roles on this server.