diff options
| author | Rapptz <[email protected]> | 2019-02-12 20:25:16 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-02-12 20:25:16 -0500 |
| commit | 60f9ac3062199083edd3481ab82e2459ef28f134 (patch) | |
| tree | 70759340bdcccbdf539c8dafd0413630efe8d398 /discord/invite.py | |
| parent | Expose more information from partial invites, along with counts. (diff) | |
| download | discord.py-60f9ac3062199083edd3481ab82e2459ef28f134.tar.xz discord.py-60f9ac3062199083edd3481ab82e2459ef28f134.zip | |
Fix missing imports
Diffstat (limited to 'discord/invite.py')
| -rw-r--r-- | discord/invite.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/discord/invite.py b/discord/invite.py index 6b1a575a..df9ea810 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. |