Update role.ts

This commit is contained in:
Ayyan 2020-12-28 12:18:09 +04:00 committed by GitHub
parent b7a93a280f
commit e37e0c3885
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ export class Role extends Base {
this.managed = data.managed this.managed = data.managed
this.mentionable = data.mentionable this.mentionable = data.mentionable
this.tags = this.tags =
data.tags !== null data.tags !== undefined
? { ? {
botID: data.tags?.bot_id, botID: data.tags?.bot_id,
integrationID: data.tags?.integration_id, integrationID: data.tags?.integration_id,