From 60f9ac3062199083edd3481ab82e2459ef28f134 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 12 Feb 2019 20:25:16 -0500 Subject: [PATCH] Fix missing imports --- discord/invite.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discord/invite.py b/discord/invite.py index 6b1a575a4..df9ea810d 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -24,12 +24,14 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -from .utils import parse_time +from .utils import parse_time, valid_icon_size from .mixins import Hashable from .object import Object from .enums import ChannelType, VerificationLevel, try_enum from collections import namedtuple +VALID_ICON_FORMATS = {"jpeg", "jpg", "webp", "png"} + class PartialInviteChannel(namedtuple('PartialInviteChannel', 'id name type')): """Represents a "partial" invite channel.