aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/constants.py1
-rw-r--r--bot/exts/utils/snekbox.py10
-rw-r--r--config-default.yml1
3 files changed, 4 insertions, 8 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 1bd6ef5e0..23d5b4304 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -377,6 +377,7 @@ class Categories(metaclass=YAMLGetter):
help_in_use: int
help_dormant: int
modmail: int
+ voice: int
class Channels(metaclass=YAMLGetter):
diff --git a/bot/exts/utils/snekbox.py b/bot/exts/utils/snekbox.py
index 8befb6fde..213d57365 100644
--- a/bot/exts/utils/snekbox.py
+++ b/bot/exts/utils/snekbox.py
@@ -41,14 +41,8 @@ RAW_CODE_REGEX = re.compile(
MAX_PASTE_LEN = 10000
# `!eval` command whitelists
-EVAL_CHANNELS = (
- Channels.bot_commands,
- Channels.esoteric,
- Channels.code_help_voice,
- Channels.code_help_voice_2,
- Channels.voice_chat
-)
-EVAL_CATEGORIES = (Categories.help_available, Categories.help_in_use)
+EVAL_CHANNELS = (Channels.bot_commands, Channels.esoteric)
+EVAL_CATEGORIES = (Categories.help_available, Categories.help_in_use, Categories.voice)
EVAL_ROLES = (Roles.helpers, Roles.moderators, Roles.admins, Roles.owners, Roles.python_community, Roles.partners)
SIGKILL = 9
diff --git a/config-default.yml b/config-default.yml
index 3f4352153..071f6e1ec 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -130,6 +130,7 @@ guild:
help_dormant: 691405908919451718
modmail: &MODMAIL 714494672835444826
logs: &LOGS 468520609152892958
+ voice: 356013253765234688
channels:
# Public announcement and news channels