mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
refactor: new node features (#5132)
Co-authored-by: Antonio Román <kyradiscord@gmail.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 && role.tags.integrationID === this.id);
|
||||
return roles.filter(role => role.tags?.integrationID === this.id);
|
||||
}
|
||||
|
||||
_patch(data) {
|
||||
|
||||
Reference in New Issue
Block a user