more readonly

This commit is contained in:
MathMan05
2026-07-13 21:00:28 -05:00
parent 11aeb22e70
commit 0b018ebcf3
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -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;
+4 -4
View File
@@ -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;
}