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