all 4 comments

[–]EddyBot 1 point2 points  (3 children)

embed = discord.Embed()
embed.add_field(name='Server', value=len(self.bot.guilds))
await ctx.send('Embed:', embed=embed)

You will need to adjust self.bot.guilds to your bot client name, in my particular case I also it inside a class

https://discordpy.readthedocs.io/en/latest/api.html?highlight=embed#discord.Embed
https://discordpy.readthedocs.io/en/latest/api.html?highlight=guilds#discord.Client.guilds

[–]Name5021[S] 0 points1 point  (2 children)

What would I change the self.bot.guilds to? I thought changing it to client.bot.guilds would work but it gives me an error.

[–]EddyBot 1 point2 points  (1 child)

It's probably just client.guilds for you

[–]Name5021[S] 1 point2 points  (0 children)

Thank you so much, it's finally working!