Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
require permissions in invite link
Browse files Browse the repository at this point in the history
  • Loading branch information
XuaTheGrate authored May 4, 2020
1 parent 8674988 commit bd6e93a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cogs/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,14 @@ async def source(self, ctx, *, command=None):
@commands.command()
async def invite(self, ctx):
"""Sends a discord url to invite me to your server."""
await ctx.send('<'+discord.utils.oauth_url(ctx.me.id)+'>')
perms = discord.Permissions(
send_messages=True,
read_messages=True,
embed_links=True,
attach_files=True,
read_message_history=True
)
await ctx.send('<'+discord.utils.oauth_url(ctx.me.id, perms)+'>')

@commands.command(aliases=['vote'])
async def dbl(self, ctx):
Expand Down

0 comments on commit bd6e93a

Please sign in to comment.