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

Commit

Permalink
okay
Browse files Browse the repository at this point in the history
  • Loading branch information
ringo360 committed Mar 16, 2024
1 parent b700b6a commit bbfd70f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/admin/commands/globalban.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ module.exports = {
description: `ご報告ありがとうございます!\n<@${resultid}>(${resultid})の通報が完了しました。`,
},
],
ephemeral: true,
});
if (!config.notificationChannel) {
throw new Error('configのnotificationChannelを定義しなさい。');
Expand All @@ -417,11 +418,11 @@ module.exports = {
const d = new Date();
const u = d.getTime();
const fxunix = Math.floor(u / 1000);
await channel.send({
return await channel.send({
embeds: [
{
title: `レポートが届きました!`,
description: `通報者: ${interaction.user.username} | 通報時刻: ${fxunix}`,
description: `通報者: ${interaction.user.username} | 通報時刻: <t:${fxunix}:f>`,
color: 0xff0000,
fields: [
{
Expand All @@ -437,6 +438,7 @@ module.exports = {
],
});
}
return;
} else {
return await interaction.editReply(
LANG.commands.globalban.unsupportedSubcommandError,
Expand Down

0 comments on commit bbfd70f

Please sign in to comment.