mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Fixed getChannelLogs bug (template string variable without ${})
This commit is contained in:
@@ -540,7 +540,7 @@ var InternalClient = (function () {
|
||||
}
|
||||
}
|
||||
|
||||
return _this13.apiRequest("get", "Endpoints.CHANNEL_MESSAGES(channel.id)?" + _querystring2["default"].stringify(qsObject), true).then(function (res) {
|
||||
return _this13.apiRequest("get", _Constants.Endpoints.CHANNEL_MESSAGES(channel.id) + "?" + _querystring2["default"].stringify(qsObject), true).then(function (res) {
|
||||
return res.map(function (msg) {
|
||||
return channel.messages.add(new _StructuresMessage2["default"](msg, channel, _this13.client));
|
||||
});
|
||||
|
||||
@@ -428,7 +428,7 @@ export default class InternalClient {
|
||||
|
||||
return this.apiRequest(
|
||||
"get",
|
||||
`Endpoints.CHANNEL_MESSAGES(channel.id)?${qs.stringify(qsObject)}`,
|
||||
`${Endpoints.CHANNEL_MESSAGES(channel.id)}?${qs.stringify(qsObject)}`,
|
||||
true
|
||||
)
|
||||
.then(res => res.map(
|
||||
|
||||
Reference in New Issue
Block a user