So I have this function for my bot:
@slash_command(name="generate", description="Let the bot continue a text based on discord messages it has seen")
@slash_option(name="model", description="Which model should be used", opt_type=OptionType.STRING, required=True,
choices=[SlashCommandChoice("markovDC-5", "markovDC-5"), SlashCommandChoice("markovDC-10", "markovDC-10")])
@slash_option(name="context", description="Text the bot will try to continue", opt_type=OptionType.STRING, required=True)
@slash_option(name="amount", description="Amount of tokens the model will generate (may be lower if it can't continue)", opt_type=OptionType.INTEGER, required=True)
@slash_option(name="seed", description="A seed for the randomizer. The same seed with the same context will yield the same output", opt_type=OptionType.INTEGER, required=False)
@slash_option(name="highlighting", description="Highlighting for the generated output. Only use for fun", opt_type=OptionType.STRING, required=False)
@slash_option(name="combine", description="Wether to combine the prompt and output into one text block", opt_type=OptionType.BOOLEAN, required=False)
async def generate(ctx: SlashContext, model: str, context: str, amount: int,
seed: int = None, highlighting: str = None, combine=False):
print(ctx, model, context, amount, seed, highlighting, combine)
# (the rest of the command logic)
The function worked a few days ago until I made some modifications to it's contents and suddenly I get an error. All my other commands work just fine. This one doesn't for some reason. The print statement was added while trying to debug but nothing is printed because the function fails while being called.