Skip to content

Commit 10d4a7e

Browse files
authored
Removed VC activities that didn't work (#370)
Some activities have been made whitelisted / private by Discord. This is because they're in development, so Discord (or the relating companies) doesn't want them to be seen yet. The ones that weren't working have been cleared from the list
1 parent ac1eb59 commit 10d4a7e

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

application/src/main/java/org/togetherjava/tjbot/commands/basic/VcActivityCommand.java

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,19 @@ public final class VcActivityCommand extends SlashCommandAdapter {
4949
private static final long MAX_AGE_DAYS_LIMIT = 7;
5050
private static final long MAX_USES_LIMIT = 100;
5151

52-
public static final String YOUTUBE_TOGETHER_NAME = "YouTube Together";
5352
public static final String POKER_NAME = "Poker";
5453
public static final String BETRAYAL_IO_NAME = "Betrayal.io";
5554
public static final String FISHINGTON_IO_NAME = "Fishington.io";
56-
public static final String CHESS_CG_2_DEV = "Chess / CG 2 Dev";
57-
public static final String AWKWORD_NAME = "Awkword";
5855
public static final String SPELLCAST_NAME = "Spellcast";
5956
public static final String DOODLECREW_NAME = "Doodlecrew";
6057
public static final String WORDSNACK_NAME = "Wordsnack";
6158
public static final String LETTERTILE_NAME = "Lettertile";
6259

6360

6461
private static final List<Command.Choice> VC_APPLICATIONS =
65-
List.of(new Command.Choice(YOUTUBE_TOGETHER_NAME, YOUTUBE_TOGETHER_NAME),
66-
new Command.Choice(POKER_NAME, POKER_NAME),
62+
List.of(new Command.Choice(POKER_NAME, POKER_NAME),
6763
new Command.Choice(BETRAYAL_IO_NAME, BETRAYAL_IO_NAME),
6864
new Command.Choice(FISHINGTON_IO_NAME, FISHINGTON_IO_NAME),
69-
new Command.Choice(CHESS_CG_2_DEV, CHESS_CG_2_DEV),
70-
new Command.Choice(AWKWORD_NAME, AWKWORD_NAME),
7165
new Command.Choice(SPELLCAST_NAME, SPELLCAST_NAME),
7266
new Command.Choice(DOODLECREW_NAME, DOODLECREW_NAME),
7367
new Command.Choice(WORDSNACK_NAME, WORDSNACK_NAME),
@@ -78,12 +72,11 @@ public final class VcActivityCommand extends SlashCommandAdapter {
7872
* invite targets" PR on JDA</a>. There is no official list from Discord themselves, so this is
7973
* our best bet.
8074
*/
81-
private static final Map<String, String> VC_APPLICATION_TO_ID = Map.of(YOUTUBE_TOGETHER_NAME,
82-
"755600276941176913", POKER_NAME, "755827207812677713", BETRAYAL_IO_NAME,
83-
"773336526917861400", FISHINGTON_IO_NAME, "814288819477020702", CHESS_CG_2_DEV,
84-
"832012586023256104", AWKWORD_NAME, "879863881349087252", SPELLCAST_NAME,
85-
"852509694341283871", DOODLECREW_NAME, "878067389634314250", WORDSNACK_NAME,
86-
"879863976006127627", LETTERTILE_NAME, "879863686565621790");
75+
private static final Map<String, String> VC_APPLICATION_TO_ID =
76+
Map.of(POKER_NAME, "755827207812677713", BETRAYAL_IO_NAME, "773336526917861400",
77+
FISHINGTON_IO_NAME, "814288819477020702", SPELLCAST_NAME, "852509694341283871",
78+
DOODLECREW_NAME, "878067389634314250", WORDSNACK_NAME, "879863976006127627",
79+
LETTERTILE_NAME, "879863686565621790");
8780

8881
private static final List<OptionData> inviteOptions = List.of(new OptionData(OptionType.INTEGER,
8982
MAX_USES_OPTION,
@@ -217,7 +210,7 @@ private static void handleErrors(@NotNull SlashCommandEvent event,
217210

218211
/**
219212
* Interprets the given option as integer. Throws if the option is not an integer.
220-
*
213+
*
221214
* @param option the option that contains the integer to extract, or null if not present
222215
* @return the extracted integer if present, null otherwise
223216
**/

0 commit comments

Comments
 (0)