ctx.guild.create_sticker yields 400 bad request when optional parameter description is not used. #1540
Closed
3 tasks done
Labels
bug
Something isn't working
Summary
Pycord docs mention that parameter description is optional, however not using it in the parameters yields 400 bad request response.
Reproduction Steps
create a bot command using the ctx: commands.Context parameters
Once user invokes the command /test
Error log will show :
Minimal Reproducible Code
Expected Results
Since description is an optional parameter in the docs,
OR
Actual Results
If description is not included in the parameters, function responds with the following error message:
Intents
intents = discord.Intents.default() intents.members = True intents = discord.Intents().all()
System Information
Python : 3.9
Mac OS Ventura PB 1
Checklist
Additional Context
await ctx.guild.create_sticker(name="dada", description="test", emoji="skull", file=file)
this works fine but like I stated, description should be optional according to https://docs.pycord.dev/en/master/api.html?highlight=sticker#discord.Guild.create_sticker
Thanks!
The text was updated successfully, but these errors were encountered: