@@ -9,7 +9,6 @@ module.exports = {
99 subcommand
1010 . setName ( "add" )
1111 . setDescription ( "Add a new alert message to this channel." )
12-
1312 . addStringOption ( ( option ) =>
1413 option
1514 . setName ( "message" )
@@ -26,10 +25,12 @@ module.exports = {
2625 )
2726 . addStringOption ( ( option ) =>
2827 option
29- . setName ( "mentions" )
30- . setDescription (
31- "Mention roles (separate by space, e.g., @role1 @role2)"
32- )
28+ . setName ( "repeat" )
29+ . setDescription ( "Whether to repeat the messages or sent once" )
30+ . addChoices ( [
31+ { name : "On" , value : "true" } ,
32+ { name : "Off" , value : "false" } ,
33+ ] )
3334 )
3435 )
3536 . addSubcommand ( ( subcommand ) =>
@@ -43,7 +44,7 @@ module.exports = {
4344 . addSubcommand ( ( subcommand ) =>
4445 subcommand
4546 . setName ( "edit" )
46- . setDescription ( "Edit a alert message." )
47+ . setDescription ( "Edit an alert message." )
4748 . addStringOption ( ( option ) =>
4849 option
4950 . setName ( "id" )
@@ -58,11 +59,20 @@ module.exports = {
5859 . setName ( "schedule" )
5960 . setDescription ( "schedule in format: Wednesday 12:00, Friday 4:00" )
6061 )
62+ . addStringOption ( ( option ) =>
63+ option
64+ . setName ( "repeat" )
65+ . setDescription ( "Whether to repeat the messages or sent once" )
66+ . addChoices ( [
67+ { name : "On" , value : "true" } ,
68+ { name : "Off" , value : "false" } ,
69+ ] )
70+ )
6171 )
6272 . addSubcommand ( ( subcommand ) =>
6373 subcommand
6474 . setName ( "remove" )
65- . setDescription ( "Delete a alert message." )
75+ . setDescription ( "Delete an alert message." )
6676 . addStringOption ( ( option ) =>
6777 option
6878 . setName ( "id" )
@@ -73,7 +83,7 @@ module.exports = {
7383 . addSubcommand ( ( subcommand ) =>
7484 subcommand
7585 . setName ( "view" )
76- . setDescription ( "view individual alert message." )
86+ . setDescription ( "View individual alert message." )
7787 . addStringOption ( ( option ) =>
7888 option
7989 . setName ( "id" )
0 commit comments