Skip to content

Commit

Permalink
シャッフルリストの編集不具合を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tissueMO committed Aug 22, 2024
1 parent 5009464 commit 9ed5863
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions extensions/discord/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ client.on('interactionCreate', async (interaction) => {
interaction.options.getChannel('channel4'),
interaction.options.getChannel('channel5'),
]
shuffleChannels = channels
.filter(c => c !== null)
.map(c => shuffleChannels);
shuffleChannels = channels.filter(c => c !== null);

// 設定を永続化
await fs.writeFile(SHUFFLE_FILE, JSON.stringify(shuffleChannels.map(c => c.id)));
Expand Down

0 comments on commit 9ed5863

Please sign in to comment.