Skip to content

Commit

Permalink
Update timeout command permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sravan1946 committed Apr 4, 2024
1 parent c49b384 commit d7a9b3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Once the bot is installed, run the following command in Discord:
| Poll | 1.1.1 | <details><summary>make polls</summary>simple command to start poll using reactions</details> | sravan |
| Prefix | 1.0.3 | <details><summary>Manage guild prefixes.</summary>Manage guild prefixes more extensively.</details> | PhenoM4n4n and sravan |
| Session | 1.1.0 | <details><summary>Command usage statuses</summary>aikaterna's rndstatus edited to display the number of commands used in a session as the status</details> | aikaterna and sravan |
| Timeout | 1.6.1 | <details><summary>Manage timeouts</summary>Add or remove timeout from users</details> | sravan |
| Timeout | 1.6.2 | <details><summary>Manage timeouts</summary>Add or remove timeout from users</details> | sravan |

# Contact
If you encounter bugs or require support, go to *#support_othercogs* on the [cog support server](https://discord.gg/GET4DVk).
Expand Down
6 changes: 3 additions & 3 deletions timeout/timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, bot: Red) -> None:
self.config.register_guild(**default_guild)

__author__ = ["sravan"]
__version__ = "1.6.1"
__version__ = "1.6.2"

def format_help_for_context(self, ctx: commands.Context) -> str:
"""
Expand Down Expand Up @@ -131,7 +131,7 @@ async def timeout_role(
@commands.guild_only()
@commands.cooldown(1, 1, commands.BucketType.user)
@commands.bot_has_permissions(moderate_members=True)
@commands.admin_or_permissions(moderate_members=True)
@commands.mod_or_permissions(moderate_members=True)
async def timeout(
self,
ctx: commands.Context,
Expand Down Expand Up @@ -188,7 +188,7 @@ async def timeout(
@commands.guild_only()
@commands.cooldown(1, 1, commands.BucketType.user)
@commands.bot_has_permissions(moderate_members=True)
@commands.admin_or_permissions(moderate_members=True)
@commands.mod_or_permissions(moderate_members=True)
async def untimeout(
self,
ctx: commands.Context,
Expand Down

0 comments on commit d7a9b3b

Please sign in to comment.