mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-23 11:13:51 -05:00
move the supression to __init__.py
This commit is contained in:
@@ -2,6 +2,10 @@ import sys
|
|||||||
import typing
|
import typing
|
||||||
import discord
|
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.
|
# Let's do all the dumb version checking in one place.
|
||||||
|
|
||||||
if discord.version_info.major < 1:
|
if discord.version_info.major < 1:
|
||||||
|
|||||||
@@ -12,10 +12,6 @@ from discord.ext.commands.bot import BotBase
|
|||||||
from discord.ext.commands import GroupMixin
|
from discord.ext.commands import GroupMixin
|
||||||
from discord.ext.commands import when_mentioned_or
|
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 .cog_manager import CogManager
|
||||||
from . import (
|
from . import (
|
||||||
Config,
|
Config,
|
||||||
|
|||||||
Reference in New Issue
Block a user