fix newRequestId function
This commit is contained in:
parent
ee742018e9
commit
98d1ca73b5
@ -10,7 +10,7 @@ export const name = 'messageReactionAdd'
|
||||
export async function execute(messageReaction: MessageReaction, user: User) {
|
||||
if (user.id == client.user?.id)
|
||||
logger.info('Skipping bot reaction')
|
||||
const requestId = newRequestId
|
||||
const requestId = newRequestId()
|
||||
const guildId = messageReaction.message.inGuild() ? messageReaction.message.guildId : noGuildId
|
||||
const reactedUponMessage: Message = messageReaction.message.partial ? await messageReaction.message.fetch() : messageReaction.message
|
||||
if (!messageReaction.message.guild) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { createLogger, format, transports } from "winston"
|
||||
import { config } from "./configuration"
|
||||
import { v4 } from "uuid"
|
||||
export const newRequestId = v4()
|
||||
export function newRequestId() { return v4() }
|
||||
export const noGuildId = 'NoGuildId'
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user