This commit is contained in:
Samuel Elliott 2018-04-25 23:54:26 +01:00
parent 02b313f2e6
commit 4721f66dab
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
3 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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 }