discord py optional argument

Solutions on MaxInterview for discord py optional argument by the best coders in the world

showing results for - "discord py optional argument"
Emer
09 May 2017
1async def command (ctx, amount: typing.Optional[int] = 0)
Sofia
03 Jan 2017
1@client.command()
2async def hellothere(ctx, *, msg):
3    await ctx.send("General Kenobi")
4#to add an optional Argument simply add an =None (anything else alowed to) after msg
5#the * means that it gives you everthing after the command
6async def hellothere(ctx, *, msg=''):
queries leading to this page
discord py how to allow both a arg and no argshow to pass an optional amount of arguments in discord pyoptional arguments in discord pyhow to print who sent the command in discord pyhow to make optional parameter in discord pypython discord optional syntaxhow to make something a optional argument discord pyhow to add a optional parameter discord pydiscord py top coomandoptional argument discorddiscord py clearwarns commandtop command discord pyoptional argument command python discorddiscordpy optional argumentsif no argument discord pyhow to make a command with an optional argument in discord pyoptional argument discord pydiscord python parseargument function discord pythondiscord py optional argumenthow to pass a user as argument discord pydiscord py argschannel create command discord pydiscord py bot mention 3d commanduse arguments in discord pydiscord py optional argumenthow to take optionalarguments in discord pyoptional parameter after 2aargs discord pydioscord py optional argumenthow to make an optional argument in discord pythonhow to make an argument optional in discord pyhow to put an optional value discord py commanddiscord py coptional command parametersoptional arguments discord pyunknown amount of arguments discord pydiscord py keyword only argumentoptional arguments discord pypass role as arg discord pyhow to make discord not accept argument s pythonstar argument discord pylock spacy role discord pyhow can i make a arg not requierd discord pydiscord python optional argumentoptional commands discord pyhow to make optional arguments in discord pydiscord py play commandpython discord ctx get arguments after commandpass role as an arg discord pydiscord python add numberdiscord py arguments with spacesmake argument optional python discord pydiscordpy two optional argumentsdiscord py command with argumentsoptional arg discord pymake parameter optional discord pyoptional argument for discord member pythonoptional arguments discoard pydiscord py optional command parametersdiscord py make a parameter optionalpass a user as an command argument discord pyoptional requirement discord pydiscord py how to make an argument not requiredoptional discord pydiscord py cool fun commandsdiscord py optional parametersdiscord py argumentsdiscord python make arguments optionalhow to make a parameter optional in discord pydiscord py optional argumentstake optional inputs discord py2 name for command discord pyhow do optional arguments work discord pudiscord py commands optional argumentdiscord py optional argumentsdiscord py optional argument