Home > other >  How to manage the parameters by default in the definitions of the discord commands
How to manage the parameters by default in the definitions of the discord commands

Time:01-19

In fact I wanted to repeat a defined number of times the written sentence with the parameter: "async def say(ctx, repetition, *phrase) but I would like in fact when we specify only the sentence in the command, by default the number of repetition is 1 and gives this: async def say(ctx, repetition = 1, *phrase) the problem is that when entering the command in discord for example: "!say Hello my name is Leo" It takes the Hello as the repetition parameter, I don't really know if I'm clear

  •  Tags:  
  • Related