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