mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[General] show stage channels in [p]serverinfo 1 (#5785)
* [General] show stage channels in `[p]serverinfo 1` * [General] Formatted with black * fix black * [General] Newline `\n` to match the current formatting. Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com> Co-authored-by: Lemon Rose <japandotorg@users.noreply.github.com> Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
parent
fb5f9b6498
commit
4d1381d7c9
@ -266,6 +266,7 @@ class General(commands.Cog):
|
|||||||
total_users = guild.member_count and humanize_number(guild.member_count)
|
total_users = guild.member_count and humanize_number(guild.member_count)
|
||||||
text_channels = humanize_number(len(guild.text_channels))
|
text_channels = humanize_number(len(guild.text_channels))
|
||||||
voice_channels = humanize_number(len(guild.voice_channels))
|
voice_channels = humanize_number(len(guild.voice_channels))
|
||||||
|
stage_channels = humanize_number(len(guild.stage_channels))
|
||||||
if not details:
|
if not details:
|
||||||
data = discord.Embed(description=created_at, colour=await ctx.embed_colour())
|
data = discord.Embed(description=created_at, colour=await ctx.embed_colour())
|
||||||
data.add_field(
|
data.add_field(
|
||||||
@ -409,8 +410,13 @@ class General(commands.Cog):
|
|||||||
name=_("Channels:"),
|
name=_("Channels:"),
|
||||||
value=_(
|
value=_(
|
||||||
"\N{SPEECH BALLOON} Text: {text}\n"
|
"\N{SPEECH BALLOON} Text: {text}\n"
|
||||||
"\N{SPEAKER WITH THREE SOUND WAVES} Voice: {voice}"
|
"\N{SPEAKER WITH THREE SOUND WAVES} Voice: {voice}\n"
|
||||||
).format(text=bold(text_channels), voice=bold(voice_channels)),
|
"\N{STUDIO MICROPHONE} Stage: {stage}"
|
||||||
|
).format(
|
||||||
|
text=bold(text_channels),
|
||||||
|
voice=bold(voice_channels),
|
||||||
|
stage=bold(stage_channels),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
data.add_field(
|
data.add_field(
|
||||||
name=_("Utility:"),
|
name=_("Utility:"),
|
||||||
@ -527,7 +533,11 @@ class General(commands.Cog):
|
|||||||
message = _(
|
message = _(
|
||||||
"<{permalink}>\n {word} by {author}\n\n{description}\n\n"
|
"<{permalink}>\n {word} by {author}\n\n{description}\n\n"
|
||||||
"{thumbs_down} Down / {thumbs_up} Up, Powered by Urban Dictionary."
|
"{thumbs_down} Down / {thumbs_up} Up, Powered by Urban Dictionary."
|
||||||
).format(word=ud.pop("word").capitalize(), description="{description}", **ud)
|
).format(
|
||||||
|
word=ud.pop("word").capitalize(),
|
||||||
|
description="{description}",
|
||||||
|
**ud,
|
||||||
|
)
|
||||||
max_desc_len = 2000 - len(message)
|
max_desc_len = 2000 - len(message)
|
||||||
|
|
||||||
description = _("{definition}\n\n**Example:** {example}").format(**ud)
|
description = _("{definition}\n\n**Example:** {example}").format(**ud)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user