Note: Since Discord increased their rate limit and channels are only renamed once every 10 minutes, expressions are significantly less useful than before - the information in the channel name can be up to 10 minutes out of date.
Expressions are a powerful way to set the channel name based on certain conditions, such as whether or not the creator has a particular role, what game is being played, and the party size.
Expressions must be in the following form:
{{CONDITION ?? TRUE // FALSE}}
If the CONDITION
part is met, whatever you wrote in the TRUE
part will be added to the channel name, otherwise the FALSE
part will be used instead. The FALSE
part is optional and can be left out (e.g. {{CONDITION ?? TRUE}}
).
Anything at all can be written inside the TRUE/FALSE
parts, including other template variables like @@num@@
or @@game_name@@
, or even other nested expressions, however only certain things may be used as the CONDITION
:
ROLE:role id
GAME=game name
@@game_name@@
returns, including aliases) matches exactly the text provided.!=
instead of =
to match anything other than exactly the text provided, or :
to match anything that contains the text provided. E.g. GAME:Call of Duty
will match with "Call of Duty: Modern Warfare", but GAME=Call of Duty
will not.LIVE
LIVE_DISCORD
to only detect discord's "Go Live" streams, or LIVE_EXTERNAL
for Twitch. LIVE
will include both.PLAYERS>number
<
, <=
, >=
, =
and !=
MAX>number
<
, <=
, >=
, =
and !=
RICH
@@num_playing@@
, @@party_size@@
, @@party_state@@
, and @@party_details@@
should have reliable values.{{GAME:Left 4 Dead ?? [@@num_playing@@/4]}}
{{LIVE??🔴 @@stream_name@@}}
{{PLAYERS=1 ?? LFG}}
{{PLAYERS<=20 ?? ## [@@game_name@@] // It's a party!}}
{{MAX=@@num_playing@@ ?? (Full) // (@@num_playing@@)}}
{{RICH??@@party_details@@{{MAX>1?? (@@num_playing@@/@@party_size@@)}}}}
{{ROLE:601025860614750229 ?? {{ROLE:615086491235909643??[UK] // {{ROLE:607913610139664444??[DE] // [EU]}}}}}}
The spaces around the ??
and //
improve readability but may not be desired if you do not want any spaces around the result.
If you have a question or need any help setting up an expression, please ask me in the support server. I'd be happy to add any extra variables you need.