Refactor uptimeObject to use a Map instead of an object

Signed-off-by: Scott Gould <greysilly7@gmail.com>
This commit is contained in:
Scott Gould 2024-09-25 16:11:09 -04:00
parent be40162fc5
commit cd7135518a
No known key found for this signature in database
6 changed files with 74 additions and 77 deletions

View file

@ -17,9 +17,8 @@ class Emoji{
get guild(){
if(this.owner instanceof Guild){
return this.owner;
}else{
return undefined;
}
return null;
}
get localuser(){
if(this.owner instanceof Guild){
@ -83,7 +82,7 @@ class Emoji{
array[i] = read8();
}
//console.log(array);
return new TextDecoder("utf-8").decode(array.buffer);
return new TextDecoder("utf8").decode(array.buffer as ArrayBuffer);
}
const build: { name: string; emojis: { name: string; emoji: string }[] }[] =
[];