Ping
Bases: Cog
Source code in src\cogs\ping.py
__init__(bot)
Creates an instance of the Ping class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bot
|
Bot
|
The discord bot the command is being added to. |
required |
ping(interaction, show_latency=True)
async
Pings the discord bot.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
interaction
|
Interaction
|
Represents the interaction from discord. |
required |
show_latency
|
bool
|
Whether to display the latency in the reply or not. |
True
|