Stop eslint clobbering code, add a comment for improvement
diff --git a/src/events/channelUpdate.ts b/src/events/channelUpdate.ts
index 2fc2a33..2f07717 100644
--- a/src/events/channelUpdate.ts
+++ b/src/events/channelUpdate.ts
@@ -18,6 +18,9 @@
99: "Rules" // Rules channel
};
+// this eslint rule is invalid here, as the type definition is actually incorrect
+// if you make it an interface due to the [key: string]: unknown line. Try it if you like :)
+// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
type channelChanges = {
channelId: ReturnType<typeof entry>;
channel: ReturnType<typeof entry>;
diff --git a/src/utils/database.ts b/src/utils/database.ts
index 67049cb..95cdb68 100644
--- a/src/utils/database.ts
+++ b/src/utils/database.ts
@@ -470,7 +470,7 @@
if (child.type === ComponentType.Button) {
obj.style = child.style;
obj.label = child.label ?? "";
- } else if (child.type > 2) {
+ } else if (child.type > 2) { // FIXME: Can we write this more clearly to make it obvious what we mean by 2 here?
obj.placeholder = child.placeholder ?? "";
}
return obj;