Get rid of localized guild feature list in serverinfo #5830

Merged
Jackenmen merged 3 commits from get_rid_of_localized_guild_feature_list into V3/develop 2022-10-13 14:04:57 +02:00
Jackenmen commented 2022-08-15 03:05:47 +02:00 (Migrated from github.com)

Description of the changes

An attempt at lowering the requirement for constant maintenance of the guild feature list. This PR makes it so that instead of maintaining a guild features list, we show the guild features as given to us by the API. Mostly. I've made 3 exceptions where the automatic casing didn't really make sense to me.

Before:
image

After:
image

As can be seen on the screenshots, this PR makes [p]serverinfo 1 show more features than before but to me, it kind of seems like an upside... Feel free to comment if you disagree.

Have the changes in this PR been tested?

Yes

### Description of the changes An attempt at lowering the requirement for constant maintenance of the guild feature list. This PR makes it so that instead of maintaining a guild features list, we show the guild features as given to us by the API. Mostly. I've made 3 exceptions where the automatic casing didn't really make sense to me. Before: ![image](https://user-images.githubusercontent.com/6032823/184562006-19a1d8c1-668f-4e38-9d24-f233f7c90acd.png) After: ![image](https://user-images.githubusercontent.com/6032823/184561972-030ad22c-1795-42f9-a793-c846d6a5524a.png) As can be seen on the screenshots, this PR makes `[p]serverinfo 1` show more features than before but to me, it kind of seems like an upside... Feel free to comment if you disagree. ### Have the changes in this PR been tested? Yes
Kowlin commented 2022-08-15 03:11:39 +02:00 (Migrated from github.com)

Thread archive duration, Threads active, New thread permissions and VIP regions can also be removed since they no longer apply.
Also News falls under Community now as it's a mainline community feature and the same applies to Enabled Discovery before with Discovery, as enabled discovery before only handles if it should show the discovery splash page.

Thread archive duration, Threads active, New thread permissions and VIP regions can also be removed since they no longer apply. Also News falls under Community now as it's a mainline community feature and the same applies to Enabled Discovery before with Discovery, as enabled discovery before only handles if it should show the discovery splash page.
Jackenmen commented 2022-08-15 03:13:29 +02:00 (Migrated from github.com)

I'm unsure whether it's worth making the change if we're just going to switch it from include list to exclude list. I guess it at least means that new features will show immediately so there is an upside there.

I'm unsure whether it's worth making the change if we're just going to switch it from include list to exclude list. I guess it at least means that new features will show immediately so there is an upside there.
Kowlin commented 2022-08-15 03:57:30 +02:00 (Migrated from github.com)

I think the change to an exclude list would be better due the fact that Discord will keep adding more feature flags over the years, without attempts at cleaning up their old flags.

NEWS is given with COMMUNITY,
THREE_DAY_THREAD_ARCHIVE, and SEVEN_DAY_THREAD_ARCHIVE have become baseline within Discord ever since Discord started rolling out Forum channels in limited private beta,
VIP_REGIONS is an partner flag that Legacy Partners carried over along with a permanent VANITY_URL so is largely attached to PARTNERED
NEW_THREAD_PERMISSIONS, THREADS_ENABLED, and TEXT_IN_VOICE_ENABLED are considered not applicable because they have been rolled out entirely

The same can be seen with user flags, such as SPAMMER.

I think the change to an exclude list would be better due the fact that Discord *will* keep adding more feature flags over the years, without attempts at cleaning up their old flags. ``NEWS`` is given with ``COMMUNITY``, ``THREE_DAY_THREAD_ARCHIVE``, and ``SEVEN_DAY_THREAD_ARCHIVE`` have become baseline within Discord ever since Discord started rolling out Forum channels in limited private beta, ``VIP_REGIONS`` is an partner flag that Legacy Partners carried over along with a permanent ``VANITY_URL`` so is largely attached to ``PARTNERED`` ``NEW_THREAD_PERMISSIONS``, ``THREADS_ENABLED``, and ``TEXT_IN_VOICE_ENABLED`` are considered not applicable because they have been rolled out entirely The same can be seen with user flags, such as ``SPAMMER``.
Jackenmen commented 2022-08-15 12:54:46 +02:00 (Migrated from github.com)

I added an exclude list.
Excluded:

  • THREE_DAY_THREAD_ARCHIVE (available to everyone since forum channels private beta)
  • SEVEN_DAY_THREAD_ARCHIVE (available to everyone since forum channels private beta)
  • NEW_THREAD_PERMISSIONS (rolled out to everyone already)
  • TEXT_IN_VOICE_ENABLED (rolled out to everyone already)
  • THREADS_ENABLED (rolled out to everyone already)

NEWS is given with COMMUNITY

I made it so COMMUNITY flag is present, NEWS is removed, does that make sense? News channels were a thing before community servers so some servers may have it without that flag.

VIP regions can also be removed since they no longer apply.

Red doesn't have PARTNERED flag but it does have VIP_REGIONS. Legacy partners can have a higher bitrate in voice channels without the need for a boost level so this flag still has a meaning.

I think ENABLED_DISCOVERABLE_BEFORE actually means that a guild has been in Discovery at least once so it's not really a legacy flag. We could maybe consider showing it only if the guild isn't currently in Discovery (so when it doesn't have DISCOVERABLE flag)

I added an exclude list. Excluded: - THREE_DAY_THREAD_ARCHIVE (available to everyone since forum channels private beta) - SEVEN_DAY_THREAD_ARCHIVE (available to everyone since forum channels private beta) - NEW_THREAD_PERMISSIONS (rolled out to everyone already) - TEXT_IN_VOICE_ENABLED (rolled out to everyone already) - THREADS_ENABLED (rolled out to everyone already) > `NEWS` is given with `COMMUNITY` I made it so `COMMUNITY` flag is present, `NEWS` is removed, does that make sense? News channels were a thing before community servers so some servers may have it without that flag. > VIP regions can also be removed since they no longer apply. Red doesn't have `PARTNERED` flag but it does have `VIP_REGIONS`. Legacy partners can have a higher bitrate in voice channels *without* the need for a boost level so this flag still has a meaning. I think `ENABLED_DISCOVERABLE_BEFORE` actually means that a guild has been in Discovery at least once so it's not really a legacy flag. We could maybe consider showing it only if the guild isn't *currently* in Discovery (so when it doesn't have `DISCOVERABLE` flag)
Kowlin commented 2022-08-15 12:57:42 +02:00 (Migrated from github.com)

I honestly love those options and they all make sense to me.

I honestly love those options and they all make sense to me.
Kowlin (Migrated from github.com) approved these changes 2022-10-13 14:04:21 +02:00
red-githubbot[bot] commented 2023-04-19 23:53:22 +02:00 (Migrated from github.com)

#6055 is a backport of this pull request to Red 3.4.

#6055 is a backport of this pull request to [Red 3.4](https://github.com/Cog-Creators/Red-DiscordBot/tree/3.4).
Sign in to join this conversation.
No reviewers
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!5830
No description provided.