support: log why the code was created
This commit is contained in:
parent
c7c0cab64c
commit
28423f85c6
|
@ -38,7 +38,8 @@ class Meta(commands.Cog):
|
||||||
await context.send('This command is temporarily unavailable. Try again later?')
|
await context.send('This command is temporarily unavailable. Try again later?')
|
||||||
return
|
return
|
||||||
|
|
||||||
invite = await ch.create_invite(max_age=self.INVITE_DURATION_SECONDS, max_uses=self.MAX_INVITE_USES)
|
reason = f'Created for {context.author} (ID: {context.author.id})'
|
||||||
|
invite = await ch.create_invite(max_age=self.INVITE_DURATION_SECONDS, max_uses=self.MAX_INVITE_USES, reason=reason)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await context.author.send(f'Official support server invite: {invite}')
|
await context.author.send(f'Official support server invite: {invite}')
|
||||||
|
|
Loading…
Reference in New Issue