You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@bot.slash()
async def ping(ctx): #or whatever you need for a slash command#
""""description""""
ctx.send("Pong!")
what you can add for slash commands (+ examples) after defining the function:
#choices, makes a choice
Choice=["foo", "bar"]
#integer, makes sure inputted text is an integer
Int=""
#float, makes sure inputted text is a float
Float=""
#boolean, like a choice command, but it can only be True or False
Bool=[]
#string, allows the user to type smt
Str=""
#and the required, which is added after one of the above optionally
Rqd=Bool
example
@bot.slash()
async def echo(ctx):
Str="", Rqd=True
ctx.send(Str)
(written by @Kerkpower)
The text was updated successfully, but these errors were encountered:
@bot.slash()
async def ping(ctx): #or whatever you need for a slash command#
""""description""""
ctx.send("Pong!")
what you can add for slash commands (+ examples) after defining the function:
#choices, makes a choice
Choice=["foo", "bar"]
#integer, makes sure inputted text is an integer
Int=""
#float, makes sure inputted text is a float
Float=""
#boolean, like a choice command, but it can only be True or False
Bool=[]
#string, allows the user to type smt
Str=""
#and the required, which is added after one of the above optionally
Rqd=Bool
example
@bot.slash()
async def echo(ctx):
Str="", Rqd=True
ctx.send(Str)
(written by @Kerkpower)
The text was updated successfully, but these errors were encountered: