Skip to content

Commit

Permalink
fix strings for menu message help options
Browse files Browse the repository at this point in the history
  • Loading branch information
EternalllZM committed Nov 10, 2024
1 parent 9c42bd2 commit 5870d9f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions roletools/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async def edit_message(
"""
Edit a bots message to include Role Buttons
`<message>` - The existing message to add role buttons to. Must be a bots message.
`<message>` - The existing message to add role buttons or select menus to. Must be a bots message.
`[buttons]...` - The names of the buttons you want to include up to a maximum of 25.
`[menus]...` - The names of the select menus you want to include up to a maximum of 5.
Expand Down Expand Up @@ -181,7 +181,7 @@ async def send_select(
"""
Send a select menu to a specified channel for role assignment
`<channel>` - the channel to send the button role buttons to.
`<channel>` - the channel to send the button select menus to.
`[menus]...` - The names of the select menus you want included in the
message up to a maximum of 5.
`[text]` - The text to be included with the select menu.
Expand Down Expand Up @@ -223,17 +223,17 @@ async def edit_with_select(
menus: commands.Greedy[SelectRoleConverter],
) -> None:
"""
Edit a bots message to include Role Buttons
Edit a bots message to include Select Menus
`<message>` - The existing message to add role buttons to. Must be a bots message.
`<message>` - The existing message to add select menus to. Must be a bots message.
`[menus]...` - The names of the select menus you want to include up to a maximum of 5.
"""
if not await self.check_totals(ctx, buttons=0, menus=len(menus)):
return
if ctx.guild.id not in self.views:
self.views[ctx.guild.id] = {}
if message.author.id != ctx.guild.me.id:
msg = _("I cannot edit someone elses message to include buttons.")
msg = _("I cannot edit someone elses message to include select menus.")
await ctx.send(msg)
return
if not menus:
Expand Down

0 comments on commit 5870d9f

Please sign in to comment.