refactor(utils/cooldown): ignore owners
This commit is contained in:
		| @@ -5,10 +5,14 @@ from logging import error, info | |||||||
| import disnake | import disnake | ||||||
|  |  | ||||||
| import commands | import commands | ||||||
|  | from constants import OWNERS | ||||||
| from state import command_cooldowns, message_responses | from state import command_cooldowns, message_responses | ||||||
|  |  | ||||||
|  |  | ||||||
| def cooldown(message, cooldown_time: int): | def cooldown(message, cooldown_time: int): | ||||||
|  |     if message.author.id in OWNERS: | ||||||
|  |         return | ||||||
|  |  | ||||||
|     possible_commands = commands.match(message.content) |     possible_commands = commands.match(message.content) | ||||||
|     if not possible_commands or len(possible_commands) > 1: |     if not possible_commands or len(possible_commands) > 1: | ||||||
|         return |         return | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user