summary refs log tree commit diff
path: root/util
diff options
context:
space:
mode:
authorChris Chrome <christophercookman@gmail.com>2022-01-05 05:44:14 -0500
committerGitHub <noreply@github.com>2022-01-05 13:44:14 +0300
commit26bea41048302fe19a381969fa0ea8da8c133e83 (patch)
treea295ffda4dc8de989b7daf122615f9102141dd8c /util
parentUpdate documents (diff)
downloadserver-26bea41048302fe19a381969fa0ea8da8c133e83.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.ts2
-rw-r--r--util/src/entities/Role.ts6
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;