help me pleaseee

async def Rpose(ctx, imagen):
variavel = random.randit(
await ctx.send(f'Sua imagem ^^{variavel}')

this code you did for him to send a radom image along with a pre-named message but it doesn't work I don't know why can you help me? I'm using python language

You are viewing a single comment. View All
Answered by VulcanWM (3100) [earned 5 cycles]
View Answer

@VulcanWM gave an error I don't know why, this message also appears on the console ; ;; ; ; ;; ; ;Ignoring exception in command Rpose:
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/", line 939, in invoke
await ctx.command.invoke(ctx)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/", line 855, in invoke
await self.prepare(ctx)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/", line 789, in prepare
await self._parse_arguments(ctx)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/", line 697, in _parse_arguments
transformed = await self.transform(ctx, param)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/", line 542, in transform
raise MissingRequiredArgument(param)
discord.ext.commands.errors.MissingRequiredArgument: imagen is a required argument that is missing.