Optional REST?: booleanOptional RESTOptions?: RESTOptionsOptional userRest ...args: ClientEvents[K]Create an event into a "Calendar" channel.
ID of a "Calendar" channel.
Event options.
Optional color?: numberOptional description?: stringOptional duration?: numberOptional isOptional location?: stringOptional rsvpOptional startsOptional url?: stringCreate a channel in a specified guild.
ID of a guild.
Name of the new channel.
Type of the new channel. (e.g: chat)
Optional options: { New channel's additional options.
Optional categoryID?: numberOptional groupID?: stringOptional isOptional topic?: stringCreate a new item in a list channel.
ID of a "Lists" channel.
String content of the new item.
Optional note: { Add a note to the new item.
The note of the list item
Send a message in a specified channel.
ID of the channel.
Message options
Create a topic in a specified forum channel.
ID of a "Forums" channel.
Topic's options including title & content.
Add a comment to a forum topic.
ID of a "Forums" channel.
ID of a topic.
Comment's options.
Edit an event from a "Calendar" channel.
ID of a "Calendar" channel.
ID of a calendar event.
Edit options.
Optional color?: numberOptional description?: stringOptional duration?: numberOptional isOptional location?: stringOptional name?: stringOptional rsvpOptional startsOptional url?: stringAdd/Edit a RSVP in a calendar event.
ID of a "Calendar" channel.
ID of a calendar event.
ID of a member.
Edit options.
Edit a doc from a "Docs" channel.
ID of a "Docs" channel.
ID of a doc.
Edit options.
Edit an item from a list channel.
ID of a "Lists" channel.
ID of a list item.
New item's content.
Optional note: { Add a note to the item.
The note of the list item
Edit a specific message coming from a specified channel.
The ID of the channel.
The ID of the message you'd like to edit.
object containing new message's options.
Edit a topic from a specified forum channel.
ID of a "Forums" channel.
ID of a topic.
Edit options.
Optional content?: stringOptional title?: stringEdit a forum topic's comment.
ID of a "Forums" channel.
ID of a topic.
ID of a topic comment.
Optional options: { Edit options.
Optional content?: stringUpdate a webhook
ID of a guild.
ID of an existent webhook.
Edit options.
Rest ...args: ClientEvents[K]Rest ...args: ClientEvents[K]Returns an array listing the events for which the emitter has registered
listeners. The values in the array are strings or Symbols.
const EventEmitter = require('events');
const myEE = new EventEmitter();
myEE.on('foo', () => {});
myEE.on('bar', () => {});
const sym = Symbol('symbol');
myEE.on(sym, () => {});
console.log(myEE.eventNames());
// Prints: [ 'foo', 'bar', Symbol(symbol) ]
v6.0.0
This method is used to get a specific calendar event.
Note: this method requires a "Calendar" channel.
ID of a Calendar channel.
ID of a Calendar event.
This method is used to get a list of CalendarEvent
ID of a "Calendar" channel.
Optional filter: { Object to filter the output.
Optional after?: stringOptional before?: stringOptional limit?: numberThis method is used to get a specific CalendarEventRSVP.
Note: this method requires a Calendar channel.
ID of a Calendar channel
ID of a Calendar Event
ID of a Guild Member
This method is used to get a list of CalendarEventRSVP.
ID of a "Calendar" channel.
ID of a calendar event.
This method is used to get a list of Message
ID of a "Chat" channel.
Optional filter: { Object to filter the output.
Optional after?: stringOptional before?: stringOptional includeOptional limit?: numberThis method is used to get a list of "Channel" Doc.
ID of a "Docs" channel.
Optional filter: { Object to filter the output.
Optional before?: stringOptional limit?: numberThis method is used to get a specific forum topic.
Note: This method requires a "Forum" channel.
ID of a speific Forum channel.
ID of the specific Forum Topic.
This method is used to get a list of ForumTopic.
ID of a "Forum" channel.
Optional filter: { Object to filter the output.
Optional before?: stringOptional limit?: numberThis method is used to get a specific topic comment.
ID of a "Forums" channel.
ID of a Forum topic.
ID of a Forum topic comment.
This method is used to get a list of ForumTopicComment.
ID of a "Forums" channel.
ID of a Forum Topic.
Rest ...args: ClientEvents[K]Rest ...args: ClientEvents[K]Rest ...args: ClientEvents[K]Rest ...args: ClientEvents[K]Rest ...args: ClientEvents[K]Optional event: keyof ClientEventsRest ...args: ClientEvents[K]By default EventEmitters will print a warning if more than 10 listeners are
added for a particular event. This is a useful default that helps finding
memory leaks. The emitter.setMaxListeners() method allows the limit to be
modified for this specific EventEmitter instance. The value can be set toInfinity (or 0) to indicate an unlimited number of listeners.
Returns a reference to the EventEmitter, so that calls can be chained.
v0.3.5
Bot's token.