bug fixes
This commit is contained in:
parent
ddaafbbed5
commit
adee201f09
3 changed files with 18 additions and 12 deletions
|
@ -915,7 +915,7 @@ class Guild extends SnowFlake {
|
||||||
this.printServers();
|
this.printServers();
|
||||||
return thischannel;
|
return thischannel;
|
||||||
}
|
}
|
||||||
createchannels(func = this.createChannel) {
|
createchannels(func = this.createChannel.bind(this)) {
|
||||||
const options = ["text", "announcement", "voice"].map((e) =>
|
const options = ["text", "announcement", "voice"].map((e) =>
|
||||||
I18n.getTranslation("channel." + e),
|
I18n.getTranslation("channel." + e),
|
||||||
);
|
);
|
||||||
|
|
|
@ -127,18 +127,21 @@ class Localuser {
|
||||||
this.guilds.push(temp);
|
this.guilds.push(temp);
|
||||||
this.guildids.set(temp.id, temp);
|
this.guildids.set(temp.id, temp);
|
||||||
}
|
}
|
||||||
console.log(ready.d.user_guild_settings.entries);
|
if (ready.d.user_guild_settings) {
|
||||||
|
console.log(ready.d.user_guild_settings.entries);
|
||||||
|
|
||||||
for (const thing of ready.d.user_guild_settings.entries) {
|
for (const thing of ready.d.user_guild_settings.entries) {
|
||||||
(this.guildids.get(thing.guild_id) as Guild).notisetting(thing);
|
(this.guildids.get(thing.guild_id) as Guild).notisetting(thing);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
for (const thing of ready.d.read_state.entries) {
|
if (ready.d.read_state) {
|
||||||
const channel = this.channelids.get(thing.channel_id);
|
for (const thing of ready.d.read_state.entries) {
|
||||||
if (!channel) {
|
const channel = this.channelids.get(thing.channel_id);
|
||||||
continue;
|
if (!channel) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
channel.readStateInfo(thing);
|
||||||
}
|
}
|
||||||
channel.readStateInfo(thing);
|
|
||||||
}
|
}
|
||||||
for (const thing of ready.d.relationships) {
|
for (const thing of ready.d.relationships) {
|
||||||
const user = new User(thing.user, this);
|
const user = new User(thing.user, this);
|
||||||
|
|
|
@ -114,7 +114,10 @@ samp {
|
||||||
text-wrap: wrap;
|
text-wrap: wrap;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
video,
|
video {
|
||||||
|
max-height: 50svh;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
iframe {
|
iframe {
|
||||||
/* max-height: 50svh; */
|
/* max-height: 50svh; */
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue