Fix: Remove unnecessary type ignore comment for latency in ping command
This commit is contained in:
parent
3c638d17ce
commit
9d8fd83497
@ -48,7 +48,7 @@ class Basics(commands.Cog):
|
|||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def ping(self, ctx: commands.CommandContext) -> None:
|
async def ping(self, ctx: commands.CommandContext) -> None:
|
||||||
await ctx.reply(f"Pong! Gateway Latency: {self.client.latency_ms} ms.") # type: ignore (latency is None during static analysis)
|
await ctx.reply(f"Pong! Gateway Latency: {self.client.latency_ms} ms.")
|
||||||
|
|
||||||
|
|
||||||
token = os.getenv("DISCORD_BOT_TOKEN")
|
token = os.getenv("DISCORD_BOT_TOKEN")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user