DM the user their invites instead of shitting up the general channel
This commit is contained in:
parent
dec7395780
commit
99ff37c1a2
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user