You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1620,7 +1622,7 @@ export class CompRettyTeams {
1620
1622
var_teamName=_team.name;
1621
1623
_team.dmReadyPlayers(`{"content":"> ${this.#competitionName}: <@${_playerID}> (\`@${_username}\`) left ${_teamName=='cr_queue' ? 'player queue' : `team ${_teamName}`}.\\n\\nYou are no longer marked ready, make sure that the team arrangement is still good at https://discord.com/channels/${interaction.guild_id}/${interaction.channel_id}"}`);
returnawaitthis.#rest.createInteractionResponse(interaction,getEphemeralResponse(`You have left ${_teamName=='cr_queue' ? 'player queue' : `team ${_teamName}`}. :levitate:`));
1626
1628
}
@@ -1640,7 +1642,7 @@ export class CompRettyTeams {
1640
1642
_team.dmReadyPlayers(`{"content":"> ${this.#competitionName}: <@${_playerID}> (\`@${_username}\`) joined team ${_teamName}.\\n\\nYou are no longer marked ready, make sure that the team arrangement is still good at https://discord.com/channels/${interaction.guild_id}/${interaction.channel_id}"}`);
1641
1643
this.setPlayerTeam(_playerID,_teamName);
1642
1644
awaitthis._onSave();
1643
-
this.logEvent(interaction.channel_id,newCompRettyEvent(_playerID,_teamName,CompRettyEventType.Joined,`<@${_playerID}> (\`@${_username}\`) joined team ${_teamName} (${_team.playerCount}) / **${this.playerCount} player(s) entered**.`));
1645
+
this.logEvent(interaction.guild_id,interaction.channel_id,newCompRettyEvent(_playerID,_teamName,CompRettyEventType.Joined,`<@${_playerID}> (\`@${_username}\`) joined team ${_teamName} (${_team.playerCount}) / **${this.playerCount} player(s) entered**.`));
1644
1646
returnawaitthis.#rest.createInteractionResponse(interaction,getEphemeralResponse(`You have been randomly assigned to team ${_teamName}. :game_die:`));
1645
1647
}
1646
1648
@@ -1702,7 +1704,7 @@ export class CompRettyTeams {
1702
1704
_team.dmReadyPlayers(`{"content":"> ${this.#competitionName}: <@${_playerID}> (\`@${_username}\`) joined team ${teamName}.\\n\\nYou are no longer marked ready, make sure that the team arrangement is still good at https://discord.com/channels/${interaction.guild_id}/${interaction.channel_id}"}`);
1703
1705
this.setPlayerTeam(_playerID,teamName);
1704
1706
awaitthis._onSave();
1705
-
this.logEvent(interaction.channel_id,newCompRettyEvent(_playerID,teamName,CompRettyEventType.Joined,`<@${_playerID}> (\`@${_username}\`) joined team ${teamName} (${_team.playerCount}) / **${this.playerCount} player(s) entered**.`));
1707
+
this.logEvent(interaction.guild_id,interaction.channel_id,newCompRettyEvent(_playerID,teamName,CompRettyEventType.Joined,`<@${_playerID}> (\`@${_username}\`) joined team ${teamName} (${_team.playerCount}) / **${this.playerCount} player(s) entered**.`));
1706
1708
}
1707
1709
1708
1710
async_onJoinQueue(interaction,isWizard=false){
@@ -1726,7 +1728,7 @@ export class CompRettyTeams {
1726
1728
_team.getOrCreatePlayer(_playerID);
1727
1729
this.#playerTeams[_playerID]=_team;
1728
1730
awaitthis._onSave();
1729
-
this.logEvent(interaction.channel_id,newCompRettyEvent(_playerID,'cr_queue',CompRettyEventType.Joined,`<@${_playerID}> (\`@${_username}\`) joined player queue (${_team.playerCount}) / **${this.playerCount} player(s) entered**.`));
1731
+
this.logEvent(interaction.guild_id,interaction.channel_id,newCompRettyEvent(_playerID,'cr_queue',CompRettyEventType.Joined,`<@${_playerID}> (\`@${_username}\`) joined player queue (${_team.playerCount}) / **${this.playerCount} player(s) entered**.`));
1730
1732
}
1731
1733
1732
1734
async_onKickPlayer(interaction,playerID){
@@ -1737,7 +1739,7 @@ export class CompRettyTeams {
returnawaitthis.#rest.createInteractionResponse(interaction,getEphemeralResponse(`Kicked player <@${playerID}> from team ${_playerTeam.name} :wind_blowing_face:`));
1742
1744
}
1743
1745
@@ -1888,7 +1890,7 @@ export class CompRettyTeams {
returnawaitthis.#rest.createInteractionResponse(interaction,getEphemeralResponse(`Kicked all players from all teams. :cloud_tornado:`));
1893
1895
case'player':
1894
1896
var_playerID=_option.options[0].value;
@@ -2002,7 +2004,7 @@ export class CompRettyTeams {
2002
2004
_teamName=_team.name;
2003
2005
_team.dmReadyPlayers(`{"content":"> ${this.#competitionName}: <@${_playerID}> (\`@${_username}\`) left ${_teamName=='cr_queue' ? 'player queue' : `team ${_teamName}`}.\\n\\nYou are no longer marked ready, make sure that the team arrangement is still good at https://discord.com/channels/${interaction.guild_id}/${interaction.channel_id}"}`);
0 commit comments