diff --git a/lib/Client/InternalClient.js b/lib/Client/InternalClient.js index 6c2be7fb1..110af4eb1 100644 --- a/lib/Client/InternalClient.js +++ b/lib/Client/InternalClient.js @@ -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)); }); diff --git a/src/Client/InternalClient.js b/src/Client/InternalClient.js index 85f239bfd..4ac7eac33 100644 --- a/src/Client/InternalClient.js +++ b/src/Client/InternalClient.js @@ -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(