1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

support: log why the code was created

This commit is contained in:
Io Mintz 2020-04-18 22:15:23 +00:00
parent c7c0cab64c
commit 28423f85c6

View file

@ -38,7 +38,8 @@ class Meta(commands.Cog):
await context.send('This command is temporarily unavailable. Try again later?')
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:
await context.author.send(f'Official support server invite: {invite}')