Skip to content
Advertisement

Tag: discord

Check if A role has perms – Discord.py

Here Is a Good question. I want to check all roles in a server for admin, then create a new channel and allow only those set roles to have access. I dont want to use @commands.has_guild_permissions(). Answer If by roles with admin you mean any role that has the Administrator permission on (not just the server’s owner), then every time

get only information of a specific guild

Hey so this code works completely fine but my problem is that it gets info of all the servers that the bot is in. This code is for logs so I want it to have different logs for each server. For example, I don’t want to show a server that I’m not in if I changed avatar or anything. Any

Advertisement