'How can I make commands in Discord.py not allow any extra characters after the actual command?
@bot.command()
async def ping(ctx):
await ctx.send("Pong! {0}ms".format(round(bot.latency * 1000)))
This is my ping command for my bot I made, however the issue is when I use this command
-ping, it works just fine but if I do, -ping whateverhere
Then the command still runs! I'm not quite sure why this happens but it accepts the other arguments for some reason. The same happens with my other commands.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
