Answers for "discord py command arguments"

1

optional arg discord py

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

how to add multiple arguments in discord commands rewrite

@bot.command()
async def args(ctx, arg1, arg2):
    await bot.say('You sent {} and {}'.format(arg1, arg2))
Posted by: Guest on July-07-2020
0

unknown amount of arguments discord py

# Include a asterisk (*) before the variable name, eg:

async def repeatback(context, *words):
	# Function code
Posted by: Guest on December-30-2020

Browse Popular Code Answers by Language