Add support for server verification levels.

This adds a new enum named VerificationLevel to denote said verification
level. This enum will also be used in the Client.edit_server calls
instead of the undocumented int parameter.
This commit is contained in:
Rapptz
2016-09-12 22:38:06 -04:00
parent 713037836c
commit 203c64a9a4
5 changed files with 50 additions and 10 deletions

View File

@ -34,7 +34,7 @@ from .invite import Invite
from .object import Object
from . import utils, opus, compat
from .voice_client import VoiceClient
from .enums import ChannelType, ServerRegion, Status, MessageType
from .enums import ChannelType, ServerRegion, Status, MessageType, VerificationLevel
from collections import namedtuple
import logging