@bot.slash_command(guilds_id=pars('guilds_id'))
# pycord will figure out the types for you
async def add(ctx, first: discord.Option(int), second: discord.Option(int)):
# you can use them as they were actual integers
sum = first + second
await ctx.respond(f"The sum of {first} and {second} is {sum}.")
Код не написан для практической цели, только для теста (slash_command)