mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Added DM support, DM Creation and DM Deletion
This commit is contained in:
@@ -11,10 +11,5 @@ function sendTTSMessage(content, options) {
|
||||
}
|
||||
|
||||
exports.applyToClass = structure => {
|
||||
if (structure.name !== 'TextChannel' && structure.name !== 'DMChannel') {
|
||||
throw new Error(structure + ' cannot implement TextBasedChannel');
|
||||
}
|
||||
|
||||
structure.prototype.sendMessage = sendMessage;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user