move the supression to __init__.py

This commit is contained in:
michael
2018-04-09 19:41:29 -04:00
parent 6e9d494d5f
commit ee7ba9c968
2 changed files with 4 additions and 4 deletions

View File

@@ -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:

View File

@@ -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,