🤖 Create a discord bot with TypeScript and Decorators!
APACHE-2.0 License
Bot releases are visible (Hide)
Checkout the way to play youtube video and playlist in updated readme. Ask questions in our youtube support if you have any. Thanks
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] almost 2 years ago
Published by github-actions[bot] almost 2 years ago
PaginationItem
-export type PaginationItem = string | EmbedBuilder | MessageOptions;
+export type PaginationItem = BaseMessageOptions & {
+ attachments?: JSONEncodable<AttachmentPayload>[];
+};
For string
- const page: PaginationItem = "hey there";
+ const page: PaginationItem = { content: "hey there" };
For embed
- const page: PaginationItem = heroEmbed;
+ const page: PaginationItem = { embeds: [heroEmbed] };
@Slash
- description
field required
- @Slash()
+ @Slash({ description: "<your command description>" })
@SlashGroup
- description
field required
- @SlashGroup({ name: "my-group" })
+ @SlashGroup({ description: "<your group description>" , name: "my-group" })
- @SlashGroup({ name: "my-sub-group", root: "my-group" })
+ @SlashGroup({ description: "<your sub groupdescription>" , name: "my-sub-group", root: "my-group" })
@SlashOption
- description
, name
, type
fields are required
⚠️ before discordx required
field default was to true
, but now it's false
as per discord api
- @SlashOption("text")
+ @SlashOption({ description: "<your option description>", name: "text", required: true, type: ApplicationCommandOptionType.String })
Published by github-actions[bot] about 2 years ago
Published by github-actions[bot] about 2 years ago
Published by github-actions[bot] about 2 years ago