Code Duplication    Length = 23-86 lines in 2 locations

pincer/objects/guild_features.py 1 location

@@ 29-51 (lines=23) @@
26
from enum import Enum, auto
27
28
29
class GuildFeatures(Enum):
30
    """Represents Guild Features strings."""
31
    ANIMATED_ICON = auto()
32
    BANNER = auto()
33
    COMMERCE = auto()
34
    COMMUNITY = auto()
35
    DISCOVERABLE = auto()
36
    FEATURABLE = auto()
37
    INVITE_SPLASH = auto()
38
    MEMBER_VERIFICATION_GATE_ENABLED = auto()
39
    NEWS = auto()
40
    PARTNERED = auto()
41
    PREVIEW_ENABLED = auto()
42
    VANITY_URL = auto()
43
    VERIFIED = auto()
44
    VIP_REGIONS = auto()
45
    WELCOME_SCREEN_ENABLED = auto()
46
    TICKETED_EVENTS_ENABLED = auto()
47
    MONETIZATION_ENABLED = auto()
48
    MORE_STICKERS = auto()
49
    THREE_DAY_THREAD_ARCHIVE = auto()
50
    SEVEN_DAY_THREAD_ARCHIVE = auto()
51
    PRIVATE_THREADS = auto()
52

pincer/objects/guild.py 1 location

@@ 154-239 (lines=86) @@
151
    SUPPRESS_GUILD_REMINDER_NOTIFICATIONS = 1 << 2
152
153
154
class GuildFeature(Enum):
155
    """
156
    :param ANIMATED_ICON:
157
        guild has access to set an animated guild icon
158
159
    :param BANNER:
160
        guild has access to set a guild banner image
161
162
    :param COMMERCE:
163
        guild has access to use commerce features (i.e. create store channels)
164
165
    :param COMMUNITY:
166
        guild can enable welcome screen, Membership Screening, stage channels
167
        and discovery, and receives community updates
168
169
    :param DISCOVERABLE:
170
        guild is able to be discovered in the directory
171
172
    :param FEATURABLE:
173
        guild is able to be featured in the directory
174
175
    :param INVITE_SPLASH:
176
        guild has access to set an invite splash background
177
178
    :param MEMBER_VERIFICATION_GATE_ENABLED:
179
        guild has enabled Membership Screening
180
181
    :param NEWS:
182
        guild has access to create news channels
183
184
    :param PARTNERED:
185
        guild is partnered
186
187
    :param PREVIEW_ENABLED:
188
        guild can be previewed before joining via Membership Screening
189
        or the directory
190
191
    :param VANITY_URL:
192
        guild has access to set a vanity URL
193
194
    :param VERIFIED:
195
        guild is verified
196
197
    :param VIP_REGIONS:
198
        guild has access to set 384kbps bitrate in voice
199
        (previously VIP voice servers)
200
201
    :param WELCOME_SCREEN_ENABLED:
202
        guild has enabled the welcome screen
203
204
    :param TICKETED_EVENTS_ENABLED:
205
        guild has enabled ticketed events
206
207
    :param MONETIZATION_ENABLED:
208
        guild has enabled monetization
209
210
    :param MORE_STICKERS:
211
        guild has increased custom sticker slots
212
213
    :param THREE_DAY_THREAD_ARCHIVE:
214
        guild has access to the three day archive time for threads
215
216
    :param SEVEN_DAY_THREAD_ARCHIVE:
217
        guild has access to the seven day archive time for threads
218
219
    :param PRIVATE_THREADS:
220
        guild has access to create private threads
221
    """
222
    ANIMATED_ICON = auto()
223
    BANNER = auto()
224
    COMMERCE = auto()
225
    COMMUNITY = auto()
226
    DISCOVERABLE = auto()
227
    FEATURABLE = auto()
228
    INVITE_SPLASH = auto()
229
    MEMBER_VERIFICATION_GATE_ENABLED = auto()
230
    NEWS = auto()
231
    PARTNERED = auto()
232
    PREVIEW_ENABLED = auto()
233
    VANITY_URL = auto()
234
    VERIFIED = auto()
235
    VIP_REGIONS = auto()
236
    WELCOME_SCREEN_ENABLED = auto()
237
    TICKETED_EVENTS_ENABLED = auto()
238
    MONETIZATION_ENABLED = auto()
239
    MORE_STICKERS = auto()
240
    THREE_DAY_THREAD_ARCHIVE = auto()
241
    SEVEN_DAY_THREAD_ARCHIVE = auto()
242
    PRIVATE_THREADS = auto()