“Discord.py Optionales Argument” Code-Antworten

optionale arg diskordte py

async def command (ctx, amount: typing.Optional[int] = 0)
CowCode

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 “Discord.py Optionales Argument”

Fragen ähnlich wie “Discord.py Optionales Argument”

Weitere verwandte Antworten zu “Discord.py Optionales Argument” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen