-
Notifications
You must be signed in to change notification settings - Fork 0
Message Basics
There are various ways to format and send messages
wc has a similar format for sending as Discord.JS with a few additions and changes
wc.channel.send(content);
// or
wc.send(content);
wc.reply(content);
wc has built in auto deleting that can be used
In this example it deletes after 5 seconds
wc.send(content, {deleteAfter: "3s"});
Embeds are put into messages using this:
wc.send(content, {embeds: [embed]});
// without content
wc.send({embeds: [embed]});
for multiple embeds you can do this:
wc.send(content, {embeds: [embed1, embed2]});
// without content
wc.send({embeds: [embed1, embed2]});
Components like buttons and selections are put into messages using this:
// any of these work
let row = new wc.ActionRow([button]);
let row = new wc.ActionRow([selection]);
let row = new wc.ActionRow([button, selection]);
wc.send(content, {components: [row]});
// without content
wc.send({components: [row]});
This is already a part of Discord.JS but ported over
To get a message's context after sending it you can do this:
// YOU HAVE TO USE ASYNC TO USE AWAIT
let message = await wc.send("a");
console.log(message.content); // "a"
For a look at some examples check out the examples folder
If anything with the mod is updated you can look to the releases for info on it
For a look into the development check out the index.js file
This mod is not associated with the creators of Discord, Discord.JS, or Discord.PY this was created out of love for Discord bot development because I wanted to make things easier for people. I do not condone harassment of the original developers and or anyone else involved in the creation of them.
I am not responsible for anything made with this mod and be sure to follow Discord's terms of service and their community guildlines while developing.
Basics
wc.command()
wc.slashCommand()
wc.commandList
wc.slashCommandList
Basics
wc.event()
wc.eventList
wc.commandAction()
wc.buttonAction()
wc.selectionAction()
wc.rowAction()
wc.fetchMessage()
wc.fetchReply()
wc.fetchUser()
wc.fetchGuildUser()
wc.fetchChannel()
wc.fetchGuildChannel()
wc.fetchRole()
wc.fetchGuildRole()
wc.fetchGuild()
wc.parseEmoji()
wc.parseSticker()