Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.4.4アップデートの完了 #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
14 changes: 11 additions & 3 deletions bot/interactions/verifyMember.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ module.exports = {
await interaction.member.roles.add(role);
return await res.reply({content: `認証しました。`, ephemeral: true});
} catch (error) {
console.error(error);
return await res.reply({content: `不明なエラーが発生しました。\nBot管理者にお問い合わせください。`, ephemeral: true});
try {
return await res.reply({content: `不明なエラーが発生しました。\nBot管理者にお問い合わせください。`, ephemeral: true});
} catch (error) {
console.error(error);
}
}
} else {
return await res.reply({content: `認証後に受け取るロールの位置がBotが保有しているロールより高い位置にあるため、ロールを付与できませんでした。`, ephemeral: true});
Expand All @@ -39,7 +42,12 @@ module.exports = {
await interaction.user.send();
return await res.reply({content: `DMに送信しました。`, ephemeral: true});
} catch (error) {
return await res.reply({content: `DMに送信できませんでした。\nプライバシー設定等をご確認ください。`, ephemeral: true});
console.log("DM_FAILED");
try {
return await res.reply({content: `DMに送信できませんでした。\nプライバシー設定等をご確認ください。`, ephemeral: true});
} catch (error) {
console.log(error);
}
}
} else {

Expand Down
Loading