remove useraccount handler
This commit is contained in:
parent
2e99a98e2d
commit
389d8387ee
@ -1,17 +0,0 @@
|
|||||||
import { User as DiscordUser } from "discord.js";
|
|
||||||
import { JellyfinHandler } from "../../jellyfin/handler";
|
|
||||||
import { logger } from "../logger";
|
|
||||||
|
|
||||||
/*
|
|
||||||
export async function addUser(discordUser: DiscordUser, jf: JellyfinHandler, guildId: string, requestId: string): Promise<any> {
|
|
||||||
if (!jf.isUserAlreadyPresent(discordUser, guildId, requestId)) {
|
|
||||||
logger.info(`User ${discordUser.username} is already registered on ${jf.ServerName}`)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const jfUserAccount = await jf.createUserAccountForDiscordUser(discordUser, guildId, requestId)
|
|
||||||
if (jfUserAccount) {
|
|
||||||
await jf.addPermissionsToUserAccount(jfUserAccount,guildId,requestId)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
*/
|
|
Loading…
Reference in New Issue
Block a user