Horje
optional arg discord py Code Example
optional arg discord py
async def command (ctx, amount: typing.Optional[int] = 0)
discord.py optional 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=''):




Whatever

Related
post mapping in spring boot Code Example post mapping in spring boot Code Example
how to learn cuda version Code Example how to learn cuda version Code Example
enable ssh ubuntu Code Example enable ssh ubuntu Code Example
how to shard a discord bot Code Example how to shard a discord bot Code Example
mat-menu-content class different Code Example mat-menu-content class different Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8