Answers for "discord.py how to allow both a arg and no args"

1

define args discord

if (!message.content.startsWith(prefix) || message.author.bot) return;

const args = message.content.slice(prefix.length).trim().split(' ');
const command = args.shift().toLowerCase();
Posted by: Guest on December-20-2020
1

optional arg discord py

async def command (ctx, amount: typing.Optional[int] = 0)
Posted by: Guest on June-11-2021

Code answers related to "discord.py how to allow both a arg and no args"

Browse Popular Code Answers by Language