Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
my brain issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ringo360 committed Mar 16, 2024
1 parent ff68bad commit 3f5541d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/admin/commands/globalban.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,14 @@ module.exports = {

const reason = new TextInputBuilder()
.setCustomId('reason')
.setTitle('通報理由')
.setLabel('通報理由')
.setStyle(TextInputStyle.Paragraph)
.setValue('グローバルBANするべきである理由を記入してください。')
modal.addComponents(targetid, reason)
await interaction.showModal(modal)
const filter = (mInteraction) => mInteraction.customId === 'gbanreport'
interaction.awaitModalSubmit({ filter, time: 60000 })
.then(async mInteraction => {
.then(async mInteraction => { //TODO: 通報された情報をどこかに送信
const resultid = mInteraction.fields.getTextInputValue('reportuserid')
const resultreason = mInteraction.fields.getTextInputValue('reason')
await mInteraction.reply(`Result: ${resultid}, ${resultreason}`)
Expand Down

0 comments on commit 3f5541d

Please sign in to comment.