mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
Began sendFile method
This commit is contained in:
@@ -530,7 +530,13 @@ var Client = (function () {
|
|||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
key: "sendFile",
|
key: "sendFile",
|
||||||
value: function sendFile(destination) {}
|
value: function sendFile(destination, file) {
|
||||||
|
var callback = arguments.length <= 2 || arguments[2] === undefined ? function (err, msg) {} : arguments[2];
|
||||||
|
|
||||||
|
var self = this;
|
||||||
|
|
||||||
|
return new Promise(function (resolve, reject) {});
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
key: "sendMessage",
|
key: "sendMessage",
|
||||||
value: function sendMessage(destination, message) {
|
value: function sendMessage(destination, message) {
|
||||||
|
|||||||
@@ -543,8 +543,14 @@ class Client {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendFile(destination) {
|
sendFile(destination, file, callback = function (err, msg) { }) {
|
||||||
|
|
||||||
|
var self = this;
|
||||||
|
|
||||||
|
return new Promise(function(resolve, reject){
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendMessage(destination, message, callback = function (err, msg) { }, premessage = "") {
|
sendMessage(destination, message, callback = function (err, msg) { }, premessage = "") {
|
||||||
@@ -1047,7 +1053,7 @@ class Client {
|
|||||||
} else {
|
} else {
|
||||||
channId = destination;
|
channId = destination;
|
||||||
}
|
}
|
||||||
if(channId)
|
if (channId)
|
||||||
resolve(channId);
|
resolve(channId);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user