mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Make Message.edit() accept arrays. (#630)
* Make Message.edit() accept arrays. Update corresponding parameters in docs (#624). * Tweak parameter types in docs. * Update docs.
This commit is contained in:
committed by
Schuyler Cebulskie
parent
17bee8084e
commit
f3286402fb
@@ -104,6 +104,8 @@ class RESTMethods {
|
||||
|
||||
updateMessage(message, content) {
|
||||
return new Promise((resolve, reject) => {
|
||||
content = this.rest.client.resolver.resolveString(content);
|
||||
|
||||
this.rest.makeRequest('patch', Constants.Endpoints.channelMessage(message.channel.id, message.id), true, {
|
||||
content,
|
||||
}).then(data => {
|
||||
|
||||
Reference in New Issue
Block a user