| @@ 137-225 (lines=89) @@ | ||
| 134 | SUPPRESS_GUILD_REMINDER_NOTIFICATIONS = 1 << 2 |
|
| 135 | ||
| 136 | ||
| 137 | class GuildFeature(Enum): |
|
| 138 | """ |
|
| 139 | :param ANIMATED_ICON: |
|
| 140 | guild has access to set an animated guild icon |
|
| 141 | ||
| 142 | :param BANNER: |
|
| 143 | guild has access to set a guild banner image |
|
| 144 | ||
| 145 | :param COMMERCE: |
|
| 146 | guild has access to use commerce features (i.e. create store channels) |
|
| 147 | ||
| 148 | :param COMMUNITY: |
|
| 149 | guild can enable welcome screen, Membership Screening, stage channels |
|
| 150 | and discovery, and receives community updates |
|
| 151 | ||
| 152 | :param DISCOVERABLE: |
|
| 153 | guild is able to be discovered in the directory |
|
| 154 | ||
| 155 | :param FEATURABLE: |
|
| 156 | guild is able to be featured in the directory |
|
| 157 | ||
| 158 | :param INVITE_SPLASH: |
|
| 159 | guild has access to set an invite splash background |
|
| 160 | ||
| 161 | :param MEMBER_VERIFICATION_GATE_ENABLED: |
|
| 162 | guild has enabled Membership Screening |
|
| 163 | ||
| 164 | :param NEWS: |
|
| 165 | guild has access to create news channels |
|
| 166 | ||
| 167 | :param PARTNERED: |
|
| 168 | guild is partnered |
|
| 169 | ||
| 170 | :param PREVIEW_ENABLED: |
|
| 171 | guild can be previewed before joining via Membership Screening |
|
| 172 | or the directory |
|
| 173 | ||
| 174 | :param VANITY_URL: |
|
| 175 | guild has access to set a vanity URL |
|
| 176 | ||
| 177 | :param VERIFIED: |
|
| 178 | guild is verified |
|
| 179 | ||
| 180 | :param VIP_REGIONS: |
|
| 181 | guild has access to set 384kbps bitrate in voice |
|
| 182 | (previously VIP voice servers) |
|
| 183 | ||
| 184 | :param WELCOME_SCREEN_ENABLED: |
|
| 185 | guild has enabled the welcome screen |
|
| 186 | ||
| 187 | :param TICKETED_EVENTS_ENABLED: |
|
| 188 | guild has enabled ticketed events |
|
| 189 | ||
| 190 | :param MONETIZATION_ENABLED: |
|
| 191 | guild has enabled monetization |
|
| 192 | ||
| 193 | :param MORE_STICKERS: |
|
| 194 | guild has increased custom sticker slots |
|
| 195 | ||
| 196 | :param THREE_DAY_THREAD_ARCHIVE: |
|
| 197 | guild has access to the three day archive time for threads |
|
| 198 | ||
| 199 | :param SEVEN_DAY_THREAD_ARCHIVE: |
|
| 200 | guild has access to the seven day archive time for threads |
|
| 201 | ||
| 202 | :param PRIVATE_THREADS: |
|
| 203 | guild has access to create private threads |
|
| 204 | """ |
|
| 205 | ANIMATED_ICON = auto() |
|
| 206 | BANNER = auto() |
|
| 207 | COMMERCE = auto() |
|
| 208 | COMMUNITY = auto() |
|
| 209 | DISCOVERABLE = auto() |
|
| 210 | FEATURABLE = auto() |
|
| 211 | INVITE_SPLASH = auto() |
|
| 212 | MEMBER_VERIFICATION_GATE_ENABLED = auto() |
|
| 213 | NEWS = auto() |
|
| 214 | PARTNERED = auto() |
|
| 215 | PREVIEW_ENABLED = auto() |
|
| 216 | VANITY_URL = auto() |
|
| 217 | VERIFIED = auto() |
|
| 218 | VIP_REGIONS = auto() |
|
| 219 | WELCOME_SCREEN_ENABLED = auto() |
|
| 220 | TICKETED_EVENTS_ENABLED = auto() |
|
| 221 | MONETIZATION_ENABLED = auto() |
|
| 222 | MORE_STICKERS = auto() |
|
| 223 | THREE_DAY_THREAD_ARCHIVE = auto() |
|
| 224 | SEVEN_DAY_THREAD_ARCHIVE = auto() |
|
| 225 | PRIVATE_THREADS = auto() |
|
| 226 | ||
| 227 | ||
| 228 | @dataclass |
|
| @@ 9-31 (lines=23) @@ | ||
| 6 | from enum import Enum, auto |
|
| 7 | ||
| 8 | ||
| 9 | class GuildFeatures(Enum): |
|
| 10 | """Represents Guild Features strings.""" |
|
| 11 | ANIMATED_ICON = auto() |
|
| 12 | BANNER = auto() |
|
| 13 | COMMERCE = auto() |
|
| 14 | COMMUNITY = auto() |
|
| 15 | DISCOVERABLE = auto() |
|
| 16 | FEATURABLE = auto() |
|
| 17 | INVITE_SPLASH = auto() |
|
| 18 | MEMBER_VERIFICATION_GATE_ENABLED = auto() |
|
| 19 | NEWS = auto() |
|
| 20 | PARTNERED = auto() |
|
| 21 | PREVIEW_ENABLED = auto() |
|
| 22 | VANITY_URL = auto() |
|
| 23 | VERIFIED = auto() |
|
| 24 | VIP_REGIONS = auto() |
|
| 25 | WELCOME_SCREEN_ENABLED = auto() |
|
| 26 | TICKETED_EVENTS_ENABLED = auto() |
|
| 27 | MONETIZATION_ENABLED = auto() |
|
| 28 | MORE_STICKERS = auto() |
|
| 29 | THREE_DAY_THREAD_ARCHIVE = auto() |
|
| 30 | SEVEN_DAY_THREAD_ARCHIVE = auto() |
|
| 31 | PRIVATE_THREADS = auto() |
|
| 32 | ||