DM the user their invites instead of shitting up the general channel

This commit is contained in:
Luke Robles 2021-03-17 11:38:39 -07:00
parent dec7395780
commit 99ff37c1a2

View File

@ -74,7 +74,7 @@ async def invite(ctx):
temp = False
if 'temp' in ctx.message.content:
temp = True
await ctx.send('Here is your temporary invite')
await ctx.author.send('Here is your temporary invite')
invite = await invite_channel.create_invite(
destination=invite_channel,
@ -82,7 +82,8 @@ async def invite(ctx):
max_age=3600,
temporary=temp,
)
await ctx.send(invite)
await ctx.send("Check your DMs")
await ctx.author.send(invite)
@bot.command(name='help')
async def help(ctx):