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
{{ message }}
This repository was archived by the owner on Dec 22, 2024. It is now read-only.
awaitinteraction.editReply(`Activity type and name successfully set.\nWaiting for all actions to be executed (${executedActions}/${plannedActions})`);
123
+
}else{
124
+
executedActions+=1;
125
+
awaitinteraction.editReply(`Activity type and name successfully set and name defaulted.\nWaiting for all actions to be executed (${executedActions}/${plannedActions})`);
126
+
}
127
+
awaitwait(3000);
128
+
}
129
+
}catch(setActivityError){
130
+
awaitinteraction.editReply(`Unable to set activity. ${setActivityError}\nWaiting for all actions to be executed (${executedActions}/${plannedActions})`);
131
+
awaitwait(4000);
132
+
}
133
+
}
134
+
135
+
if(!newActivityType&&newActivityName){
136
+
awaitinteraction.editReply(`Unable to set activity name. No activity type provided.\nWaiting for all actions to be executed (${executedActions}/${plannedActions})`);
awaitinteraction.editReply(`Nickname successfully reset for **${interaction.guild.name}**.\nWaiting for all actions to be executed (${executedActions}/${plannedActions})`);
147
+
}else{
148
+
awaitbotMember.setNickname(newNickname);
149
+
executedActions+=1;
150
+
awaitinteraction.editReply(`Nickname successfully set for **${interaction.guild.name}**.\nWaiting for all actions to be executed (${executedActions}/${plannedActions})`);
151
+
}
152
+
awaitwait(3000);
153
+
}catch(setNicknameError){
154
+
awaitinteraction.editReply(`Unable to set nickname for **${interaction.guild.name}**. ${setNicknameError}\nWaiting for all actions to be executed (${executedActions}/${plannedActions})`);
155
+
awaitwait(4000);
156
+
}
157
+
}
158
+
159
+
if(newAvatar){
160
+
try{
161
+
interaction.client.user.setAvatar(newAvatar.url);
162
+
executedActions+=1;
163
+
awaitinteraction.editReply(`Avatar successfully set.\nWaiting for all actions to be executed (${executedActions}/${plannedActions})`);
164
+
awaitwait(3000);
165
+
}catch(setAvatarError){
166
+
awaitinteraction.editReply(`Unable to set avatar. ${setAvatarError}\nWaiting for all actions to be executed (${executedActions}/${plannedActions})`);
0 commit comments