feat: add trusted user list
This commit is contained in:
parent
5c030a0557
commit
94bdb91eb0
@ -8,7 +8,7 @@ import audio
|
|||||||
import commands
|
import commands
|
||||||
import utils
|
import utils
|
||||||
from constants import EMBED_COLOR
|
from constants import EMBED_COLOR
|
||||||
from state import client, players
|
from state import client, players, trusted_users
|
||||||
|
|
||||||
from .playback import resume
|
from .playback import resume
|
||||||
from .utils import command_allowed, ensure_joined, play_next
|
from .utils import command_allowed, ensure_joined, play_next
|
||||||
@ -147,6 +147,7 @@ async def queue_or_play(message, edited=False):
|
|||||||
)
|
)
|
||||||
>= 5
|
>= 5
|
||||||
and not len(message.guild.voice_client.channel.members) == 2
|
and not len(message.guild.voice_client.channel.members) == 2
|
||||||
|
and message.author.id not in trusted_users
|
||||||
):
|
):
|
||||||
await utils.reply(
|
await utils.reply(
|
||||||
message,
|
message,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user