staff notifications
This commit is contained in:
@@ -384,6 +384,52 @@ async function registerCommands() {
|
||||
.setIntegrationTypes([ApplicationIntegrationType.GuildInstall])
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
|
||||
|
||||
new SlashCommandBuilder()
|
||||
.setName('notification')
|
||||
.setDescription('Manage your staff notification settings')
|
||||
.setContexts([InteractionContextType.Guild])
|
||||
.setIntegrationTypes([ApplicationIntegrationType.GuildInstall])
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages)
|
||||
.addSubcommand(sub =>
|
||||
sub
|
||||
.setName('set')
|
||||
.setDescription('Set your notification cooldown (hours between alerts per ticket)')
|
||||
.addIntegerOption(opt =>
|
||||
opt
|
||||
.setName('hours')
|
||||
.setDescription('Cooldown in hours (1–6)')
|
||||
.setMinValue(1)
|
||||
.setMaxValue(6)
|
||||
.setRequired(true)
|
||||
)
|
||||
)
|
||||
.addSubcommand(sub =>
|
||||
sub
|
||||
.setName('add')
|
||||
.setDescription('Create a notification channel for a staff member')
|
||||
.addUserOption(opt =>
|
||||
opt.setName('member').setDescription('Staff member').setRequired(true)
|
||||
)
|
||||
),
|
||||
|
||||
new SlashCommandBuilder()
|
||||
.setName('staffnotification')
|
||||
.setDescription('Override notification cooldown for another staff member (admin only)')
|
||||
.setContexts([InteractionContextType.Guild])
|
||||
.setIntegrationTypes([ApplicationIntegrationType.GuildInstall])
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.addUserOption(opt =>
|
||||
opt.setName('member').setDescription('Staff member').setRequired(true)
|
||||
)
|
||||
.addIntegerOption(opt =>
|
||||
opt
|
||||
.setName('hours')
|
||||
.setDescription('Cooldown in hours (1–6)')
|
||||
.setMinValue(1)
|
||||
.setMaxValue(6)
|
||||
.setRequired(true)
|
||||
),
|
||||
|
||||
new SlashCommandBuilder()
|
||||
.setName('accountinfo')
|
||||
.setDescription('Look up website account info by email or Discord user')
|
||||
|
||||
Reference in New Issue
Block a user