Skip to content

Commit a592347

Browse files
committed
[datautils] add new guild features
1 parent f76d126 commit a592347

File tree

3 files changed

+189
-137
lines changed

3 files changed

+189
-137
lines changed

datautils/common_variables.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,23 @@
3737
"NEW_THREAD_PERMISSIONS": _("Enabled new thread permissions"),
3838
"ROLE_ICONS": _("Role icons"),
3939
"DISCOVERABLE_DISABLED": _("Cannot be in Server Discovery"),
40+
"MEMBER_VERIFICATION_GATE_ENABLED": _("Membership screening (Rules screening)"),
41+
"AUTO_MODERATION": _("Auto moderation enabled"),
42+
"TEXT_IN_VOICE_ENABLED": _("Text in voice channels"),
4043
# Docs from https://github.com/vDelite/DiscordLists:
4144
"PREVIEW_ENABLED": _('Preview enabled ("Lurkable")'),
42-
"MEMBER_VERIFICATION_GATE_ENABLED": _("Member verification gate enabled"),
4345
"MEMBER_LIST_DISABLED": _("Member list disabled"),
4446
"PREMIUM_TIER_3_OVERRIDE": _("Permanent level 3 boost"),
4547
"MEMBER_PROFILES": _("Server profiles"),
4648
"CHANNEL_BANNER": _("Channel banner"),
49+
"BOT_DEVELOPER_EARLY_ACCESS": _("Early access for bot/lib devs"),
50+
"INTERNAL_EMPLOYEE_ONLY": _("Only for discord employees"),
51+
"GUILD_HOME_TEST": _("Home feature access"),
52+
"HAD_EARLY_ACTIVITIES_ACCESS": _("Bypass voice channel activities requirements"),
53+
"HAS_DIRECTORY_ENTRY": _("In a student hub"),
54+
"HUB": _("Student hub"),
55+
"ROLE_SUBSCRIPTIONS_ENABLED": _("Role subscriptions"),
56+
"ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE": _("Members can purchase roles"),
4757
# im honestly idk what the fuck that shit means, and discord doesnt provides much docs,
4858
# so if you see that on your server while using my cog - idk what the fuck is that and how it got there,
4959
# ask discord to write fucking docs already
@@ -53,6 +63,7 @@
5363
"FORCE_RELAY": _(
5464
"Shards connections to the guild to different nodes that relay information between each other."
5565
),
66+
"EXPOSED_TO_ACTIVITIES_WTP_EXPERIMENT": _("Activities baseline engagement bundle"),
5667
}
5768

5869
ACTIVITY_TYPES = {

datautils/datautils.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class DataUtils(commands.Cog):
2323
"""Commands for getting information about users or servers."""
2424

25-
__version__ = "2.6.12"
25+
__version__ = "2.6.13"
2626

2727
# noinspection PyMissingConstructor
2828
def __init__(self, bot):
@@ -159,14 +159,11 @@ async def uinfo(self, ctx, *, member: discord.Member = None):
159159
em.add_field(name=_("Name"), value=member.name)
160160
em.add_field(
161161
name=_("Client"),
162-
value="📱: {}\n"
163-
"🖥: {}\n"
164-
"🌎: {}".format(
165-
str(member.mobile_status).capitalize(),
166-
str(member.desktop_status).capitalize(),
167-
str(member.web_status).capitalize(),
168-
),
162+
value=f"📱: {str(member.mobile_status).capitalize()}\n"
163+
f"🖥: {str(member.desktop_status).capitalize()}\n"
164+
f"🌎: {str(member.web_status).capitalize()}",
169165
)
166+
170167
em.add_field(
171168
name=_("Joined server"),
172169
value=get_markdown_timestamp(member.joined_at, TimestampStyle.datetime_long),

0 commit comments

Comments
 (0)