Skip to content

Commit b2c3f60

Browse files
committed
Increased /moveall limit
1 parent 0bbc326 commit b2c3f60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/messageManager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async def move(self, ctx: commands.Context, msg: discord.Message, channel: disco
8181
@commands.guild_only()
8282
async def moveall(self, ctx: commands.Context, msg1: discord.Message, msg2: discord.Message, channel: discord.TextChannel, *, confirm = True):
8383
"""Move several messages in another channel
84-
84+
8585
msg1 and msg2 need to be from the same channel"""
8686

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

105105
# Retrieves the message list from msg1
106-
msgList = await msg1.channel.history(limit=30, after=msg1).flatten()
106+
msgList = await msg1.channel.history(limit=100, after=msg1).flatten()
107107
if len(msgList) == 0:
108108
await ctx.send(await self.bot._(ctx.guild.id, "message_manager.moveall.no-msg"))
109109
return
110-
110+
111111
# Webhook creation (common to all messages)
112112
webhook = await channel.create_webhook(name="Gunipy Hook")
113113

0 commit comments

Comments
 (0)