@@ -40,6 +40,11 @@ public async Task AnnounceBuildSlashCommand(InteractionContext ctx,
40
40
return ;
41
41
}
42
42
43
+ if ( insiderChannel1 == insiderChannel2 )
44
+ {
45
+ await ctx . RespondAsync ( $ "{ Program . cfgjson . Emoji . Error } Both insider channels cannot be the same! Simply set one instead.", ephemeral : true ) ;
46
+ }
47
+
43
48
if ( windowsVersion == 10 && insiderChannel1 != "RP" )
44
49
{
45
50
await ctx . RespondAsync ( text : $ "{ Program . cfgjson . Emoji . Error } Windows 10 only has a Release Preview Channel.", ephemeral : true ) ;
@@ -128,7 +133,7 @@ public async Task AnnounceBuildSlashCommand(InteractionContext ctx,
128
133
{
129
134
pingMsgString += $ "\n \n Discuss it here: { threadChannel . Mention } ";
130
135
}
131
- else if ( insiderChannel1 == "Canary" && Program . cfgjson . InsiderCanaryThread != 0 && autothreadName == "Build {0} ({1})" && ! canaryCreateNewThread )
136
+ else if ( insiderChannel1 == "Canary" && insiderChannel2 == "" && Program . cfgjson . InsiderCanaryThread != 0 && autothreadName == "Build {0} ({1})" && ! canaryCreateNewThread )
132
137
{
133
138
threadChannel = await ctx . Client . GetChannelAsync ( Program . cfgjson . InsiderCanaryThread ) ;
134
139
pingMsgString += $ "\n \n Discuss it here: { threadChannel . Mention } ";
@@ -165,7 +170,7 @@ public async Task AnnounceBuildSlashCommand(InteractionContext ctx,
165
170
{
166
171
noPingMsgString += $ "\n \n Discuss it here: { threadChannel . Mention } ";
167
172
}
168
- else if ( insiderChannel1 == "Canary" && Program . cfgjson . InsiderCanaryThread != 0 && autothreadName == "Build {0} ({1})" && ! canaryCreateNewThread )
173
+ else if ( insiderChannel1 == "Canary" && insiderChannel2 == "" && Program . cfgjson . InsiderCanaryThread != 0 && autothreadName == "Build {0} ({1})" && ! canaryCreateNewThread )
169
174
{
170
175
threadChannel = await ctx . Client . GetChannelAsync ( Program . cfgjson . InsiderCanaryThread ) ;
171
176
noPingMsgString += $ "\n \n Discuss it here: { threadChannel . Mention } ";
0 commit comments