Skip to content

Commit f465abb

Browse files
committed
revert: changes to Util
1 parent 99482ad commit f465abb

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

packages/discord.js/src/util/Util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function parseEmoji(text) {
9696

9797
/**
9898
* Resolves a partial emoji object from an {@link EmojiIdentifierResolvable}, without checking a Client.
99-
* @param {EmojiIdentifierResolvable|RawEmoji} emoji Emoji identifier to resolve
99+
* @param {EmojiIdentifierResolvable} emoji Emoji identifier to resolve
100100
* @returns {?RawEmoji}
101101
* @private
102102
*/

test.mjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { Client, Events } from './packages/discord.js/src/index.js';
2+
3+
const client = new Client({
4+
intents: 1,
5+
});
6+
7+
client.on(Events.ClientReady, async () => {
8+
const guild = client.guilds.cache.get('505181778718228480');
9+
10+
const onboarding = await guild.fetchOnboarding();
11+
12+
console.log(onboarding.prompts.first().options.first().emoji);
13+
14+
// await guild.editOnboarding({
15+
// prompts: [
16+
// {
17+
// title: 'this is a title',
18+
// options: [
19+
// {
20+
// ...onboarding.prompts.first().options.first(),
21+
// emoji: '812030610288803851',
22+
// },
23+
// ],
24+
// },
25+
// ],
26+
// });
27+
});
28+
29+
await client.login();

0 commit comments

Comments
 (0)