Node v18, discord.js v14

This commit is contained in:
Isaac
2022-07-18 13:34:29 +01:00
parent c04787bb80
commit 3a1c0f54bd
5 changed files with 37 additions and 46 deletions

View File

@@ -69,7 +69,7 @@ module.exports.post = fastify => ({
data.discordCategory = channel.id;
}
if (!data.channelName) data.channelName = 'ticket-{num}';
data.channelName ??= 'ticket-{num}';
const category = await client.prisma.category.create({
data: {

View File

@@ -1,4 +1,3 @@
const fetch = require('node-fetch');
const { domain } = require('../../lib/http');
module.exports.get = () => ({