[Core] add ctx.tick() to [p]invite (#5199)

This commit is contained in:
GhOsT 2021-09-01 01:27:11 +04:00 committed by GitHub
parent 6bf85a42f8
commit c57ef4828e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1501,6 +1501,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
""" """
try: try:
await ctx.author.send(await self._invite_url()) await ctx.author.send(await self._invite_url())
await ctx.tick()
except discord.errors.Forbidden: except discord.errors.Forbidden:
await ctx.send( await ctx.send(
"I couldn't send the invite message to you in DM. " "I couldn't send the invite message to you in DM. "