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>
This commit is contained in:
Chris Chrome
2022-01-05 13:44:14 +03:00
committed by GitHub
co-authored by MANIKILLER ImAaronFR
parent 0292633721
commit aaf5df14e1
6 changed files with 124 additions and 3 deletions
+2
View File
@@ -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" }];
+6
View File
@@ -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;