mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
refactor: change xID to xId (#6036)
* refactor: change `xID` to `xId` * Update src/managers/MessageManager.js Co-authored-by: Noel <buechler.noel@outlook.com> Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
@@ -90,7 +90,7 @@ class Integration extends Base {
|
||||
*/
|
||||
get roles() {
|
||||
const roles = this.guild.roles.cache;
|
||||
return roles.filter(role => role.tags?.integrationID === this.id);
|
||||
return roles.filter(role => role.tags?.integrationId === this.id);
|
||||
}
|
||||
|
||||
_patch(data) {
|
||||
@@ -186,9 +186,9 @@ class Integration extends Base {
|
||||
|
||||
toJSON() {
|
||||
return super.toJSON({
|
||||
role: 'roleID',
|
||||
guild: 'guildID',
|
||||
user: 'userID',
|
||||
role: 'roleId',
|
||||
guild: 'guildId',
|
||||
user: 'userId',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user