1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

it works™️

This commit is contained in:
in the moon 2021-09-09 11:24:28 +00:00
parent fa118d6880
commit 2184e69667

View file

@ -52,21 +52,11 @@ class Meta(commands.Cog):
with contextlib.suppress(nextcord.HTTPException): with contextlib.suppress(nextcord.HTTPException):
await context.send('📬') await context.send('📬')
@commands.command(aliases=['inv']) @commands.command(aliases=['inv']) # https://discordapi.com/permissions.html
async def invite(self, context): async def invite(self, context):
"""Gives you a link to add me to your server.""" """Gives you a link to add me to your server."""
permissions = nextcord.Permissions()
permissions.update(**dict.fromkeys((
'read_messages',
'send_messages',
'add_reactions',
'external_emojis',
'manage_emojis',
'embed_links',
'attach_files',
), True))
await context.send('<%s>' % nextcord.utils.oauth_url(self.bot.user.id, permissions)) await context.send('<%s>' % nextcord.utils.oauth_url(self.bot.user.id, permissions=nextcord.Permissions(permissions=1074056256)))
def setup(bot): def setup(bot):