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

Commit

Permalink
Add alert to double counter verification command palette
Browse files Browse the repository at this point in the history
  • Loading branch information
verticalsync committed Feb 5, 2024
1 parent 0b7a20b commit 53f1784
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/plugins/doubleCounterVerifyBypass/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,16 @@ export default definePlugin({
label: "Verify a Double Counter Link",
callback: async () => {
const link = await openSimpleTextInput("Please enter the Double Counter link you want to verify.");
if (link) verify(link);
if (link) {
await verify(link).then(() => {
Alerts.show({
title: "Verified",
body: "You have been verified successfully, please wait a little bit for DoubleCounter to update your roles.",
confirmText: "Okay",
onConfirm: () => { }
});
});
}
},
registrar: "DoubleCounterVerifyBypass"
});
Expand Down

0 comments on commit 53f1784

Please sign in to comment.