diff options
author | Chris Chrome <christophercookman@gmail.com> | 2022-01-05 05:44:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 13:44:14 +0300 |
commit | aaf5df14e1523ef70fcb9aa5ff9fc0b73ff42fee (patch) | |
tree | 63c49b6d70dce0cfe70528d0e1aa2411c85b2d51 /util | |
parent | Update documents (diff) | |
download | server-aaf5df14e1523ef70fcb9aa5ff9fc0b73ff42fee.tar.xz |
Add Role Icons (#574)
* Role Icons Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com> * Cache coherency rules Co-authored-by: MANIKILLER <manikillrorg@gmail.com> Co-authored-by: ImAaronFR <96433859+ImAaronFR@users.noreply.github.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/src/entities/Guild.ts | 2 | ||||
-rw-r--r-- | util/src/entities/Role.ts | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/util/src/entities/Guild.ts b/util/src/entities/Guild.ts index 157f0921..f4c94a64 100644 --- a/util/src/entities/Guild.ts +++ b/util/src/entities/Guild.ts @@ -340,6 +340,8 @@ export class Guild extends BaseClass { name: "@everyone", permissions: String("2251804225"), position: 0, + icon: null, + unicode_emoji: null }).save(); if (!body.channels || !body.channels.length) body.channels = [{ id: "01", type: 0, name: "general" }]; diff --git a/util/src/entities/Role.ts b/util/src/entities/Role.ts index 9fca99a5..4b721b5b 100644 --- a/util/src/entities/Role.ts +++ b/util/src/entities/Role.ts @@ -36,6 +36,12 @@ export class Role extends BaseClass { @Column() position: number; + @Column({ nullable: true }) + icon: string; + + @Column({ nullable: true }) + unicode_emoji: string; + @Column({ type: "simple-json", nullable: true }) tags?: { bot_id?: string; |