Comments
This commit is contained in:
parent
02b313f2e6
commit
4721f66dab
|
@ -58,7 +58,7 @@ export class Channel {
|
|||
* Send a message in this channel.
|
||||
* @param {String} content The new message's content
|
||||
* @param {Boolean} parse Whether to parse the message or send it as it is
|
||||
* @return {Promise}
|
||||
* @return {Promise => Message}
|
||||
*/
|
||||
async sendMessage(content, parse = false) {
|
||||
if (this.assertPermissions) this.assertPermissions('SEND_MESSAGES', Modules.DiscordPermissions.VIEW_CHANNEL | Modules.DiscordPermissions.SEND_MESSAGES);
|
||||
|
@ -105,7 +105,7 @@ export class Channel {
|
|||
/**
|
||||
* Sends an invite in this channel.
|
||||
* @param {String} code The invite code
|
||||
* @return {Promise}
|
||||
* @return {Promise => Messaage}
|
||||
*/
|
||||
async sendInvite(code) {
|
||||
if (this.assertPermissions) this.assertPermissions('SEND_MESSAGES', Modules.DiscordPermissions.VIEW_CHANNEL | Modules.DiscordPermissions.SEND_MESSAGES);
|
||||
|
|
|
@ -226,7 +226,7 @@ export class Guild {
|
|||
}
|
||||
|
||||
/**
|
||||
* Whether this channel is currently selected.
|
||||
* Whether this guild is currently selected.
|
||||
*/
|
||||
get isSelected() {
|
||||
return DiscordApi.currentGuild === this;
|
||||
|
|
|
@ -119,6 +119,7 @@ export class Message {
|
|||
static get GroupChannelIconChangeMessage() { return GroupChannelIconChangeMessage }
|
||||
static get MessagePinnedMessage() { return MessagePinnedMessage }
|
||||
static get GuildMemberJoinMessage() { return GuildMemberJoinMessage }
|
||||
|
||||
static get Reaction() { return Reaction }
|
||||
static get Embed() { return Embed }
|
||||
|
||||
|
|
Loading…
Reference in New Issue