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

(cherry picked from commit c57ef4828e)

Co-authored-by: GhOsT <79806064+Arman0334@users.noreply.github.com>

Co-authored-by: GhOsT <79806064+Arman0334@users.noreply.github.com>
This commit is contained in:
Red-GitHubBot
2021-09-08 21:50:13 +02:00
committed by GitHub
parent 80a1088061
commit fe147f277f

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. "