mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +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 res.map(function (msg) {
|
||||||
return channel.messages.add(new _StructuresMessage2["default"](msg, channel, _this13.client));
|
return channel.messages.add(new _StructuresMessage2["default"](msg, channel, _this13.client));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ export default class InternalClient {
|
|||||||
|
|
||||||
return this.apiRequest(
|
return this.apiRequest(
|
||||||
"get",
|
"get",
|
||||||
`Endpoints.CHANNEL_MESSAGES(channel.id)?${qs.stringify(qsObject)}`,
|
`${Endpoints.CHANNEL_MESSAGES(channel.id)}?${qs.stringify(qsObject)}`,
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
.then(res => res.map(
|
.then(res => res.map(
|
||||||
|
|||||||
Reference in New Issue
Block a user