Added handler for password reset command
This commit is contained in:
parent
7e37641e0b
commit
11dac10a07
17
server/commands/resetPassword.ts
Normal file
17
server/commands/resetPassword.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import { ApplicationCommandOptionType, BurstHandlerMajorIdKey } from 'discord.js'
|
||||
import { Command } from '../structures/command'
|
||||
import { RunOptions } from '../types/commandTypes'
|
||||
import { jellyfinHandler } from "../.."
|
||||
import { v4 as uuid } from 'uuid'
|
||||
|
||||
export default new Command({
|
||||
name: 'passwort_reset',
|
||||
description: 'Ich vergebe dir ein neues Passwort und schicke es dir per DM zu. Kostet auch nix! Versprochen! 😉',
|
||||
options: [],
|
||||
run: async (interaction: RunOptions) => {
|
||||
console.log('PasswortReset called')
|
||||
interaction.interaction.followUp('Yo, ich schick dir eins!')
|
||||
console.log(JSON.stringify(interaction.interaction.member, null, 2))
|
||||
jellyfinHandler.resetUserPasswort(interaction.interaction.member, uuid())
|
||||
}
|
||||
})
|
Loading…
Reference in New Issue
Block a user