Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RoleTools] Fix help strings for select menu options in roletools messages command #343

Merged
merged 2 commits into from
Nov 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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
Loading