mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
Fix typo in RESTMethods.js (#1455)
Mentions should be written with a capital M
This commit is contained in:
@@ -767,7 +767,7 @@ class RESTMethods {
|
|||||||
if (options.guild) options.guild = options.guild.id ? options.guild.id : options.guild;
|
if (options.guild) options.guild = options.guild.id ? options.guild.id : options.guild;
|
||||||
return this.rest.makeRequest(
|
return this.rest.makeRequest(
|
||||||
'get',
|
'get',
|
||||||
Endpoints.User('@me').mentions(options.limit, options.roles, options.everyone, options.guild)
|
Endpoints.User('@me').Mentions(options.limit, options.roles, options.everyone, options.guild)
|
||||||
).then(res => res.body.map(m => new Message(this.client.channels.get(m.channel_id), m, this.client)));
|
).then(res => res.body.map(m => new Message(this.client.channels.get(m.channel_id), m, this.client)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user