diff --git a/index.tsx b/index.tsx
index 98cf7a4..0c02458 100644
--- a/index.tsx
+++ b/index.tsx
@@ -17,11 +17,14 @@ type Flag = {
text: string;
};
-function Flag({ message }: { message: Message; }) {
- if (message.author.id === "886685857560539176") return (
+function Flag({ id }: { id: string; }) {
+ return (
-
- 🛑 This link is explosive
+
+ {flags.get(id)?.type === "danger" ? "🛑" : flags.get(id)?.type === "warning" ? "⚠️" : flags.get(id)?.type === "info" ? "🔵" : "✅"} {flags.get(id)?.text}
);
@@ -34,9 +37,10 @@ export default definePlugin({
dependencies: ["MessageAccessoriesAPI"],
start() {
addAccessory("flag", (props: Record) => {
- return (
-
- );
+ if (flags.has((props.message as Message).author.id)) {
+ return ;
+ }
+ return null;
}, 4);
},
commands: [