|
8 | 8 | import sys |
9 | 9 | import traceback |
10 | 10 | import types |
11 | | -from datetime import datetime, timedelta |
| 11 | +from datetime import timedelta |
12 | 12 | from errno import ECONNRESET |
13 | 13 | from typing import ( |
14 | 14 | TYPE_CHECKING, |
|
33 | 33 | import aiohttp |
34 | 34 |
|
35 | 35 | from . import abc, utils |
36 | | -from .activity import ActivityTypes, BaseActivity, create_activity |
| 36 | +from .activity import BaseActivity, create_activity |
37 | 37 | from .app_commands import ( |
38 | 38 | APIMessageCommand, |
39 | 39 | APISlashCommand, |
40 | 40 | APIUserCommand, |
41 | | - ApplicationCommand, |
42 | | - GuildApplicationCommandPermissions, |
43 | 41 | ) |
44 | 42 | from .appinfo import AppInfo |
45 | 43 | from .application_role_connection import ApplicationRoleConnectionMetadata |
46 | 44 | from .backoff import ExponentialBackoff |
47 | 45 | from .channel import PartialMessageable, _threaded_channel_factory |
| 46 | +from .emoji import Emoji |
48 | 47 | from .entitlement import Entitlement |
49 | | -from .enums import ApplicationCommandType, ChannelType, Event, Status |
| 48 | +from .enums import ChannelType, Event, Status |
50 | 49 | from .errors import ( |
51 | 50 | ConnectionClosed, |
52 | 51 | GatewayNotFound, |
|
59 | 58 | from .guild import Guild, GuildBuilder |
60 | 59 | from .guild_preview import GuildPreview |
61 | 60 | from .http import HTTPClient |
62 | | -from .i18n import LocalizationProtocol, LocalizationStore |
| 61 | +from .i18n import LocalizationStore |
63 | 62 | from .invite import Invite |
64 | 63 | from .iterators import EntitlementIterator, GuildIterator |
65 | 64 | from .mentions import AllowedMentions |
66 | 65 | from .object import Object |
67 | 66 | from .sku import SKU |
68 | | -from .soundboard import GuildSoundboardSound, SoundboardSound |
| 67 | +from .soundboard import SoundboardSound |
69 | 68 | from .stage_instance import StageInstance |
70 | 69 | from .state import ConnectionState |
71 | | -from .sticker import GuildSticker, StandardSticker, StickerPack, _sticker_factory |
| 70 | +from .sticker import StickerPack, _sticker_factory |
72 | 71 | from .template import Template |
73 | 72 | from .ui.view import View |
74 | 73 | from .user import ClientUser, User |
|
79 | 78 | from .widget import Widget |
80 | 79 |
|
81 | 80 | if TYPE_CHECKING: |
| 81 | + from datetime import datetime |
| 82 | + |
82 | 83 | from typing_extensions import NotRequired |
83 | 84 |
|
84 | 85 | from .abc import GuildChannel, PrivateChannel, Snowflake, SnowflakeTime |
85 | | - from .app_commands import APIApplicationCommand, MessageCommand, SlashCommand, UserCommand |
| 86 | + from .activity import ActivityTypes |
| 87 | + from .app_commands import ( |
| 88 | + APIApplicationCommand, |
| 89 | + ApplicationCommand, |
| 90 | + GuildApplicationCommandPermissions, |
| 91 | + MessageCommand, |
| 92 | + SlashCommand, |
| 93 | + UserCommand, |
| 94 | + ) |
86 | 95 | from .asset import AssetBytes |
87 | 96 | from .channel import DMChannel |
88 | | - from .emoji import Emoji |
| 97 | + from .enums import ApplicationCommandType |
89 | 98 | from .flags import ApplicationFlags, Intents, MemberCacheFlags |
| 99 | + from .i18n import LocalizationProtocol |
90 | 100 | from .member import Member |
91 | 101 | from .message import Message |
| 102 | + from .soundboard import GuildSoundboardSound |
| 103 | + from .sticker import GuildSticker, StandardSticker |
92 | 104 | from .threads import Thread |
93 | 105 | from .types.application_role_connection import ( |
94 | 106 | ApplicationRoleConnectionMetadata as ApplicationRoleConnectionMetadataPayload, |
|
0 commit comments