Skip to content

Commit 1999d45

Browse files
committed
Rewrite history
1 parent 8978e41 commit 1999d45

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

discord/utilities.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ class Utilities {
110110
return false;
111111
}
112112

113+
getFc(str) {
114+
const db = Storage.getDatabase("fc").fc;
115+
for (const id of Object.keys(db)) {
116+
const entry = db[id];
117+
if ((this.parseUserId(str) && this.parseUserId(str).id === id) || str.replace("@", "") === entry.user) return entry;
118+
}
119+
return "No FCs found.";
120+
}
121+
113122
toSmogonString(dex) {
114123
let genStr = "ss";
115124
switch (dex) {

0 commit comments

Comments
 (0)