mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
3 commits
e7217cecb5
...
5fc65e3c71
Author | SHA1 | Date | |
---|---|---|---|
|
5fc65e3c71 | ||
|
3170d85376 | ||
|
e7cc94408b |
2 changed files with 1644 additions and 1225 deletions
2843
package-lock.json
generated
2843
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -6,18 +6,20 @@ function updateGlobalEmoteRegistry(): void {
|
||||||
const data: EmoteRegistryDump = {version: 1, list: []};
|
const data: EmoteRegistryDump = {version: 1, list: []};
|
||||||
|
|
||||||
for (const guild of client.guilds.cache.values()) {
|
for (const guild of client.guilds.cache.values()) {
|
||||||
for (const emote of guild.emojis.cache.values()) {
|
guild.fetch().then((g) => {
|
||||||
data.list.push({
|
for (const emote of g.emojis.cache.values()) {
|
||||||
ref: emote.name,
|
data.list.push({
|
||||||
id: emote.id,
|
ref: emote.name,
|
||||||
name: emote.name,
|
id: emote.id,
|
||||||
requires_colons: emote.requiresColons ?? false,
|
name: emote.name,
|
||||||
animated: emote.animated ?? false,
|
requires_colons: emote.requiresColons ?? false,
|
||||||
url: emote.url,
|
animated: emote.animated ?? false,
|
||||||
guild_id: emote.guild.name,
|
url: emote.url,
|
||||||
guild_name: emote.guild.name
|
guild_id: emote.guild.name,
|
||||||
});
|
guild_name: emote.guild.name
|
||||||
}
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
FileManager.open("data/public"); // generate folder if it doesn't exist
|
FileManager.open("data/public"); // generate folder if it doesn't exist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue