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
Copy file name to clipboardExpand all lines: src/commands/fun/Contest/Contest.ts
+11-11
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ export class Contest extends Command
26
26
},
27
27
{
28
28
name: "current",
29
-
desc: "Get the currently active contest in the server",
29
+
desc: "Shows the currently active contest of the server",
30
30
},
31
31
{
32
32
name: "list",
@@ -55,7 +55,7 @@ export class Contest extends Command
55
55
required: true
56
56
}
57
57
],
58
-
perms: ["ADMINISTRATOR"]
58
+
perms: ["MANAGE_CHANNELS"]
59
59
},
60
60
{
61
61
name: "set_role",
@@ -68,7 +68,7 @@ export class Contest extends Command
68
68
required: true,
69
69
}
70
70
],
71
-
perms: ["ADMINISTRATOR"]
71
+
perms: ["MANAGE_ROLES"]
72
72
},
73
73
{
74
74
name: "submit",
@@ -94,13 +94,13 @@ export class Contest extends Command
94
94
args: [
95
95
{
96
96
name: "contest_id",
97
-
desc: "ID of contest you want to vote on",
97
+
desc: "The ID of the contest you want to submit your vote to",
98
98
type: ApplicationCommandOptionType.Number,
99
99
required: true,
100
100
},
101
101
{
102
102
name: "contestant",
103
-
desc: "Contestant you want to vote for",
103
+
desc: "The contestant you want to vote for",
104
104
type: ApplicationCommandOptionType.User,
105
105
required: true,
106
106
}
@@ -112,13 +112,13 @@ export class Contest extends Command
112
112
args: [
113
113
{
114
114
name: "contest_id",
115
-
desc: "ID of contest you want to remove the vote from",
115
+
desc: "The ID of the contest you want to remove your vote from",
116
116
type: ApplicationCommandOptionType.Number,
117
117
required: true,
118
118
},
119
119
{
120
120
name: "contestant",
121
-
desc: "Contestant you want to remove the vote from",
121
+
desc: "The contestant you want to remove the vote from",
122
122
type: ApplicationCommandOptionType.User,
123
123
required: true,
124
124
}
@@ -142,13 +142,13 @@ export class Contest extends Command
142
142
args: [
143
143
{
144
144
name: "contest_id",
145
-
desc: "ID of contest you want your submissions removed from",
145
+
desc: "The ID of the contest you want the submission removed from",
146
146
type: ApplicationCommandOptionType.Number,
147
147
required: true,
148
148
},
149
149
{
150
150
name: "user",
151
-
desc: "User you want to delete the submission of",
151
+
desc: "The contestant you want to delete the submission of",
152
152
type: ApplicationCommandOptionType.User,
153
153
required: true,
154
154
},
@@ -207,7 +207,7 @@ export class Contest extends Command
207
207
returnawaitthis.editReply(int,embedify("There's no currently active contest"));
208
208
}
209
209
210
-
constembedDesc=`${contest.description}\n\nuse \`/contest submit ${contest.id}\` to submit your entry\n\n24 hour voting period will start after the deadline`;
210
+
constembedDesc=`${contest.description}\n\nuse \`/contest submit contest_id:${contest.id}\` to submit your entry\n\n24 hour voting period will start after the deadline`;
211
211
212
212
constembed=newEmbedBuilder()
213
213
.setTitle(contest.name)
@@ -269,7 +269,7 @@ export class Contest extends Command
constembedDesc=didContestEnd ? contest.description : `${contest.description}\n\nuse \`/contest submit ${contest.id}\` to submit your entry\n\n24 hour voting period will start after the deadline`;
272
+
constembedDesc=didContestEnd ? contest.description : `${contest.description}\n\nuse \`/contest submit contest_id:${contest.id}\` to submit your entry\n\n24 hour voting period will start after the deadline`;
constdescription=`${contest.description}\n\n\n\nuse \`/contest submit ${contest.id}\` to submit your entry\n\n24 hour voting period will start after the deadline`;
44
+
constdescription=`${contest.description}\n\n\n\nuse \`/contest submit contest_id:${contest.id}\` to submit your entry\n\n24 hour voting period will start after the deadline`;
returnthis.reply(int,embedify(`Please enter a name that's not longer than ${maxNameLength} characters`,settings.embedColors.error));
185
+
181
186
awaitthis.deferReply(int,ephemeral);
182
187
183
188
constreminders=awaitgetReminders(user.id);
@@ -202,7 +207,7 @@ export class Reminder extends Command
202
207
private: guild?.id ? ephemeral : true,
203
208
});
204
209
205
-
returnawaitthis.editReply(int,embedify(`I've set a reminder with the name \`${name}\` (ID \`${reminderId}\`)\nDue: ${time(toUnix10(dueTimestamp),"f")}\n\nTo list your reminders, use \`/reminder list\``,settings.embedColors.success));
210
+
returnawaitthis.editReply(int,embedify(`I've set the following reminder:\n> ${name}\n> Due: ${time(toUnix10(dueTimestamp),"f")}\n\nID: \`${reminderId}\` • To list your reminders use \`/reminder list\``,settings.embedColors.success));
206
211
};
207
212
208
213
switch(opt.name)
@@ -243,15 +248,17 @@ export class Reminder extends Command
returnthis.reply(int,embedify("Please enter the expiry date and time in the following format (24 hours, UTC):\n`YYYY-MM-DD hh:mm:ss`",settings.embedColors.error),true);
254
+
returnthis.reply(int,embedify("Please enter the expiry date and time in one of the following formats (24 hours, UTC):\n`YYYY-MM-DD hh:mm:ss` **or** `YYYY-MM-DD hh:mm`",settings.embedColors.error),true);
250
255
251
256
// match() above makes sure this exec() can't return null
returnthis.reply(int,embedify("Please enter the expiry time in one of the following formats (24 hours, UTC):\n`hh:mm:ss` or `hh:mm`",settings.embedColors.error),true);
282
+
returnthis.reply(int,embedify("Please enter the expiry time in one of the following formats (24 hours, UTC):\n`hh:mm:ss` **or** `hh:mm`",settings.embedColors.error),true);
276
283
277
284
// match() above makes sure this exec() can't return null
0 commit comments