Parent Directory
|
Revision Log
|
Patch
revision 5 by rakin, Mon Jul 29 17:28:11 2024 UTC | revision 27 by rakin, Mon Jul 29 17:28:16 2024 UTC | |
---|---|---|
# | Line 1 | Line 1 |
1 | async function getGuild() { | |
2 | const guild_id = app.config.props.global.id; | |
3 | ||
4 | try { | |
5 | return await app.client.guilds.fetch(guild_id); | |
6 | } | |
7 | catch(e) { | |
8 | return null; | |
9 | } | |
10 | } | |
11 | ||
12 | async function find(cb) { | |
13 | const guild = await getGuild(); | |
14 | return await guild.emojis.cache.find(cb); | |
15 | } | |
16 | ||
17 | async function emoji(name) { | |
18 | return await find(e => e.name === name); | |
19 | } | |
20 | ||
21 | module.exports = { | module.exports = { |
22 | bean: "963410344208891904" | getGuild, |
23 | find, | |
24 | emoji | |
25 | }; | }; |
|
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |