mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
ESLint stuff...
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
function sendMessage(content, options) {
|
||||
options = options || {};
|
||||
return this.client.rest.methods.SendMessage(this, content, options.tts);
|
||||
function sendMessage(content, options = {}) {
|
||||
return this.client.rest.methods.sendMessage(this, content, options.tts);
|
||||
}
|
||||
|
||||
function sendTTSMessage(content, options) {
|
||||
options = options || {};
|
||||
return this.client.rest.methods.SendMessage(this, content, true);
|
||||
function sendTTSMessage(content) {
|
||||
return this.client.rest.methods.sendMessage(this, content, true);
|
||||
}
|
||||
|
||||
exports.applyToClass = structure => {
|
||||
structure.prototype.sendMessage = sendMessage;
|
||||
structure.prototype.sendMessage = sendMessage;
|
||||
structure.prototype.sendTTSMessage = sendTTSMessage;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user