From ee7ba9c968dd8d7038fcba856c5718d2e5bd3345 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 9 Apr 2018 19:41:29 -0400 Subject: [PATCH] move the supression to __init__.py --- redbot/__init__.py | 4 ++++ redbot/core/bot.py | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/redbot/__init__.py b/redbot/__init__.py index edf21f713..027a98350 100644 --- a/redbot/__init__.py +++ b/redbot/__init__.py @@ -2,6 +2,10 @@ import sys import typing import discord +# This supresses the PyNaCl warning that isn't relevant here +from discord.voice_client import VoiceClient +VoiceClient.warn_nacl = False + # Let's do all the dumb version checking in one place. if discord.version_info.major < 1: diff --git a/redbot/core/bot.py b/redbot/core/bot.py index 82efebeda..49a1cc449 100644 --- a/redbot/core/bot.py +++ b/redbot/core/bot.py @@ -12,10 +12,6 @@ from discord.ext.commands.bot import BotBase from discord.ext.commands import GroupMixin from discord.ext.commands import when_mentioned_or -# This supresses the PyNaCl warning that isn't relevant here -from discord.voice_client import VoiceClient -VoiceClient.warn_nacl = False - from .cog_manager import CogManager from . import ( Config,