mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Typo
This commit is contained in:
@@ -98,7 +98,7 @@ const EMBEDS = {
|
|||||||
},
|
},
|
||||||
CONFIGURED_CHANNEL: (data: Message | Interaction, channel: GuildChannel) => {
|
CONFIGURED_CHANNEL: (data: Message | Interaction, channel: GuildChannel) => {
|
||||||
return makeSuccessEmbed ({
|
return makeSuccessEmbed ({
|
||||||
title: 'Configured Membership Screening Role',
|
title: 'Configured Membership Screening Channel',
|
||||||
description: 'Anyone with ``VIEW_CHANNEL`` permission in ' + '``' + channel.name +'``' + ' can approve or deny request',
|
description: 'Anyone with ``VIEW_CHANNEL`` permission in ' + '``' + channel.name +'``' + ' can approve or deny request',
|
||||||
user: (data instanceof Interaction) ? data.user : data.author
|
user: (data instanceof Interaction) ? data.user : data.author
|
||||||
});
|
});
|
||||||
@@ -176,7 +176,9 @@ export default class MembershipScreening {
|
|||||||
if(data.guild === null || data.guildId === null) return;
|
if(data.guild === null || data.guildId === null) return;
|
||||||
|
|
||||||
const Guild = await Prisma.client.guild.findFirst({ where: { id: data.guildId }})
|
const Guild = await Prisma.client.guild.findFirst({ where: { id: data.guildId }})
|
||||||
if(!Guild) throw new Error('TODO: Handle if guild is not found');
|
|
||||||
|
// TODO: Handle if guild is not found
|
||||||
|
if(!Guild) throw new Error('Guild not found');
|
||||||
|
|
||||||
|
|
||||||
const funct = {
|
const funct = {
|
||||||
|
|||||||
Reference in New Issue
Block a user