File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
packages/discord.js/src/util Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ function parseEmoji(text) {
96
96
97
97
/**
98
98
* 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
100
100
* @returns {?RawEmoji }
101
101
* @private
102
102
*/
Original file line number Diff line number Diff line change
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 ( ) ;
You can’t perform that action at this time.
0 commit comments