File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1919)
2020from redbot .core .utils .mod import get_audit_reason
2121from redbot .core .utils .menus import start_adding_reactions
22+ from redbot .core .utils .views import SimpleMenu
2223from redbot .core .utils .predicates import MessagePredicate , ReactionPredicate
2324
2425from .converters import MuteTime
@@ -1102,8 +1103,13 @@ async def activemutes(self, ctx: commands.Context):
11021103 msg += "\n "
11031104
11041105 if msg :
1106+ msgs = []
11051107 for page in pagify (msg ):
1106- await ctx .maybe_send_embed (page )
1108+ if await ctx .embed_requested ():
1109+ msgs .append (discord .Embed (description = page , colour = await ctx .embed_colour ()))
1110+ else :
1111+ msgs .append (page )
1112+ await SimpleMenu (msgs ).start (ctx )
11071113 return
11081114 await ctx .maybe_send_embed (_ ("There are no mutes on this server right now." ))
11091115
You can’t perform that action at this time.
0 commit comments