mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
rename
This commit is contained in:
1 parent
0b0c3c4326
commit
53d39e2210
3 files changed
+39
-39
No files matched your search
+7
-7
@@ -1,10 +1,10 @@
|
||||
import { EmbedBuilder, SlashCommandBuilder, PermissionFlagsBits, ChatInputCommandInteraction } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { Logger } from 'pino';
|
||||
import { TFunction } from 'i18next';
|
||||
import guildDatabaseService from '../../../services/guildDatabaseService';
|
||||
import guildDatabaseClient from '../../services/guildDatabaseClient';
|
||||
|
||||
class SettingsCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
@@ -63,7 +63,7 @@ class SettingsCommand extends BaseSlashCommandInteraction {
|
||||
logger.debug('Showing settings');
|
||||
|
||||
// get settings from database
|
||||
const settings = await guildDatabaseService.getGuildSettings(interaction.guild!.id, executionId, interaction);
|
||||
const settings = await guildDatabaseClient.getGuildConfig(interaction.guild!.id, executionId, interaction);
|
||||
|
||||
console.log(settings);
|
||||
|
||||
@@ -99,7 +99,7 @@ class SettingsCommand extends BaseSlashCommandInteraction {
|
||||
|
||||
const volume = interaction.options.getInteger('percentage');
|
||||
|
||||
const settings = await guildDatabaseService.getGuildSettings(interaction.guild!.id, executionId, interaction);
|
||||
const settings = await guildDatabaseClient.getGuildConfig(interaction.guild!.id, executionId, interaction);
|
||||
|
||||
if (!volume) {
|
||||
if (!settings) {
|
||||
@@ -136,7 +136,7 @@ class SettingsCommand extends BaseSlashCommandInteraction {
|
||||
defaultVolume: volume
|
||||
};
|
||||
|
||||
await guildDatabaseService.createOrUpdateGuildSettings(
|
||||
await guildDatabaseClient.createOrUpdateGuildConfig(
|
||||
executionId,
|
||||
interaction.guild!.id,
|
||||
updatedSettings,
|
||||
Reference in new issue
Block a user