mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-08-29 03:28:45 +00:00
more readonly
This commit is contained in:
@@ -47,7 +47,7 @@ class Channel extends SnowFlake {
|
||||
parentId?: string;
|
||||
parent?: Channel;
|
||||
children!: Channel[];
|
||||
readonly permissionOverwriteMap!: Map<string, Permissions>;
|
||||
readonly permissionOverwriteMap = new Map<string, Permissions>();
|
||||
permissionOverwriteOrder: string[] = [];
|
||||
topic!: string;
|
||||
nsfw!: boolean;
|
||||
@@ -90,9 +90,9 @@ class Channel extends SnowFlake {
|
||||
static contextmenu = new Contextmenu<Channel, undefined>("channel menu");
|
||||
replyingto!: Message | null;
|
||||
infinite!: InfiniteScroller;
|
||||
idToPrev: Map<string, string | undefined>;
|
||||
idToNext: Map<string, string | undefined>;
|
||||
messages: Map<string, Message>;
|
||||
readonly idToPrev: Map<string, string | undefined>;
|
||||
readonly idToNext: Map<string, string | undefined>;
|
||||
readonly messages: Map<string, Message>;
|
||||
voice?: Voice;
|
||||
bitrate: number = 128000;
|
||||
threadData?: threadMetadata;
|
||||
|
||||
@@ -69,7 +69,7 @@ interface MDSearchOption {
|
||||
|
||||
MarkDown.emoji = Emoji;
|
||||
class Localuser {
|
||||
badges = new Map<
|
||||
readonly badges = new Map<
|
||||
string,
|
||||
{id: string; description: string; icon: string; link?: string; translate?: boolean}
|
||||
>(badgeArr);
|
||||
@@ -90,9 +90,9 @@ class Localuser {
|
||||
readonly guilds = new Map<string, Guild>();
|
||||
readonly channels: Map<string, Channel> = new Map();
|
||||
readonly userMap: Map<string, User> = new Map();
|
||||
messages = new Map<string, Message>();
|
||||
idToPrev = new Map<string, string | undefined>();
|
||||
idToNext = new Map<string, string | undefined>();
|
||||
readonly messages = new Map<string, Message>();
|
||||
readonly idToPrev = new Map<string, string | undefined>();
|
||||
readonly idToNext = new Map<string, string | undefined>();
|
||||
get status() {
|
||||
return this.user.status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user