Skip to content

Commit

Permalink
fix remained mentions to role
Browse files Browse the repository at this point in the history
  • Loading branch information
phenylshima committed Jul 14, 2022
1 parent b447116 commit 7c194e3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
Warnings:
- You are about to drop the column `dictionaryWriteRole` on the `GuildSettings` table. All the data in the column will be lost.
- You are about to drop the column `moderatorRole` on the `GuildSettings` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "GuildSettings" DROP COLUMN "dictionaryWriteRole",
DROP COLUMN "moderatorRole";
1 change: 0 additions & 1 deletion src/classes/preprocessor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const pillow =

const defaultGuildSettings = {
guildId: '', //unused
dictionaryWriteRole: '', //unused
readSpeakersName: false, //unused
readMultiLine: true,
readEmojis: true,
Expand Down
15 changes: 0 additions & 15 deletions src/commands/setting/set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,6 @@ export const data: ApplicationCommandSubCommandData = {
minValue: 0,
maxValue: 10000,
},
{
name: 'moderator_role',
type: 'ROLE',
description:
'/dict-bulk、/emoji-bulk、/settingを使えるユーザーのロールを指定します。',
},
{
name: 'dictionary_write_role',
type: 'ROLE',
description: '/dictを使えるユーザーのロールを指定します。',
},
],
};

Expand All @@ -60,10 +49,6 @@ export async function handle(interaction: CommandInteraction<'cached'>) {
try {
const setting = {
guildId: interaction.guildId,
moderatorRole:
interaction.options.getRole('moderator_role')?.id ?? undefined,
dictionaryWriteRole:
interaction.options.getRole('dictionary_write_role')?.id ?? undefined,
readSpeakersName:
interaction.options.getBoolean('read_speakers_name') ?? undefined,
readMultiLine:
Expand Down

0 comments on commit 7c194e3

Please sign in to comment.