🚚 config modules are now folders

This commit is contained in:
Axel Olausson Holtenäs 2022-05-28 17:35:00 +02:00
parent efd7f24598
commit 598bff90c8
No known key found for this signature in database
GPG key ID: 7BF6826B76382CBA
6 changed files with 29 additions and 29 deletions

View file

@ -96,39 +96,39 @@ export default {
await guildDB?.save()?.then(async () => {
logger?.silly(`Guild welcome updated.`);
if (!guildDB?.welcome?.status) {
return interaction?.editReply({
embeds: [
{
title: "[:tools:] Welcome",
description: `This module is currently disabled, please enable it to continue.`,
color: successColor,
timestamp: new Date(),
footer: {
iconURL: footerIcon,
text: footerText,
},
},
],
});
}
return interaction?.editReply({
embeds: [
{
title: ":hammer: Settings - Guild [Welcome]",
description: `Welcome settings updated.`,
title: "[:tools:] Welcome",
description: `The following configuration will be used.
[👋] **Welcome**
**Channel**: <#${guildDB?.welcome?.joinChannel}>
**Message**: ${guildDB?.welcome?.joinChannelMessage}
[🚪] **Leave**
**Channel**: <#${guildDB?.welcome?.leaveChannel}>
**Message**: ${guildDB?.welcome?.leaveChannelMessage}`,
color: successColor,
fields: [
{
name: "🤖 Status",
value: `${guildDB?.welcome?.status}`,
inline: true,
},
{
name: "🌊 Join Channel",
value: `${guildDB?.welcome?.joinChannel}`,
inline: true,
},
{
name: "🌊 Leave Channel",
value: `${guildDB?.welcome?.leaveChannel}`,
inline: true,
},
{
name: "📄 Join Channel Message",
value: `${guildDB?.welcome?.joinChannelMessage}`,
inline: true,
},
{
name: "📄 Leave Channel Message",
value: `${guildDB?.welcome?.leaveChannelMessage}`,
inline: true,
},
],
timestamp: new Date(),
footer: {
iconURL: footerIcon,