'Command raised an exception: Forbidden: 403 Forbidden (error code: 50013): Missing Permissions

I got this error between testing my discord bot. I am making bot to send random Pokémon data. I granted my bot administer and It's work fine but when I am disable administer permission I got an error

I try to find what specific permission that I should granted to my bot but I granted all permission except administer and it's not working. I need to fix this error by give him specific permission that isn't admin Can someone please help me fix this issue?

Here is my code for command section:

bot = commands.Bot(command_prefix=prefix)

@bot.command()
   async def randompoke(ctx):
   url="https://pokeapi.co/api/v2/pokemon/" + str(random.randint(1,898))
   data = requests.get(url).json()
   name = data['name']
   image = data['sprites']['front_default']
   type = data['types'][0]['type']['name']

   embed_randompoke=discord.Embed(title="Random Pokemon", color=discord.Color.from_rgb(245, 233, 12))
   embed_randompoke.set_thumbnail(url=image)
   embed_randompoke.add_field(name="Name:", value=f" {name} ", inline=False)
   embed_randompoke.add_field(name="ID:", value=f" {data['id']} ", inline=False)
   embed_randompoke.add_field(name="Type:", value=f" {type} ", inline=False)
   embed_randompoke.set_footer(text=f"At timestamp 😀", icon_url=ctx.author.avatar_url)
   await ctx.reply(embed=embed_randompoke)

   bot.run(token, reconnect=True)

thank!



Solution 1:[1]

If the bot works when the Administrator perm is enabled, keep it enabled.

You can use this for better calcification on Discord permissions.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mr bean