“unbekannte Menge an Argumenten Discord Py” Code-Antworten

unbekannte Menge an Argumenten Discord Py

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

async def repeatback(context, *words):
	# Function code
Locstock

Discord.py Optionales Argument

@client.command()
async def hellothere(ctx, *, msg):
    await ctx.send("General Kenobi")
#to add an optional Argument simply add an =None (anything else alowed to) after msg
#the * means that it gives you everthing after the command
async def hellothere(ctx, *, msg=''):
Eager Elephant

Ähnliche Antworten wie “unbekannte Menge an Argumenten Discord Py”

Fragen ähnlich wie “unbekannte Menge an Argumenten Discord Py”

Weitere verwandte Antworten zu “unbekannte Menge an Argumenten Discord Py” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen