fix(utils/discord): move import into function
This commit is contained in:
@@ -4,12 +4,13 @@ from logging import debug, error
|
|||||||
|
|
||||||
import disnake
|
import disnake
|
||||||
|
|
||||||
from .. import commands
|
|
||||||
from ..constants import OWNERS
|
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):
|
||||||
|
from .. import commands
|
||||||
|
|
||||||
if message.author.id in OWNERS:
|
if message.author.id in OWNERS:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user