Skip to content

Commit

Permalink
Increased /moveall limit
Browse files Browse the repository at this point in the history
  • Loading branch information
VForiel committed Feb 22, 2021
1 parent 0bbc326 commit b2c3f60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/messageManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async def move(self, ctx: commands.Context, msg: discord.Message, channel: disco
@commands.guild_only()
async def moveall(self, ctx: commands.Context, msg1: discord.Message, msg2: discord.Message, channel: discord.TextChannel, *, confirm = True):
"""Move several messages in another channel
msg1 and msg2 need to be from the same channel"""

# Permission check
Expand All @@ -103,11 +103,11 @@ async def moveall(self, ctx: commands.Context, msg1: discord.Message, msg2: disc
msg2, msg1 = msg1, msg2

# Retrieves the message list from msg1
msgList = await msg1.channel.history(limit=30, after=msg1).flatten()
msgList = await msg1.channel.history(limit=100, after=msg1).flatten()
if len(msgList) == 0:
await ctx.send(await self.bot._(ctx.guild.id, "message_manager.moveall.no-msg"))
return

# Webhook creation (common to all messages)
webhook = await channel.create_webhook(name="Gunipy Hook")

Expand Down

0 comments on commit b2c3f60

Please sign in to comment.