generated from Baipyrus/DiscordJS-Template
clean up: consistency and ease of use
This commit is contained in:
parent
30f3a97cc3
commit
57cc53ba99
@ -196,7 +196,7 @@ export async function execute(interaction) {
|
||||
if (createNew) {
|
||||
try {
|
||||
// Create guild if not exists
|
||||
const guildData = { id: interaction.guild.id };
|
||||
const guildData = { id: interaction.guildId };
|
||||
await Guilds.findOrCreate({
|
||||
where: guildData,
|
||||
defaults: guildData
|
||||
@ -205,7 +205,7 @@ export async function execute(interaction) {
|
||||
// Create database entry
|
||||
await Messages.create({
|
||||
id,
|
||||
guild: interaction.guild.id
|
||||
guild: interaction.guildId
|
||||
});
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
Loading…
Reference in New Issue
Block a user