Replies: 1 comment
-
This isn't how you access variables in Python, I recommend familiarizing yourself with classes.
@client.command()
async def myNameIs(ctx, *, nickname: str):
await ctx.author.edit(nick=nickname)
await ctx.send('Nickname was changed.') Please note that in order to use this library it is strongly recommended to be familiar with basic Python concepts -- not doing so will make things significantly more difficult than they should be. |
Beta Was this translation helpful? Give feedback.
-
My code:
It always gives me this error code and i dont know what it means and cant find info on the internet.
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: Object of type member_descriptor is not JSON serializable
Beta Was this translation helpful? Give feedback.
All reactions