summary refs log tree commit diff
path: root/util/src/entities/Invite.ts
diff options
context:
space:
mode:
authorThe Arcane Brony <myrainbowdash949@gmail.com>2021-10-10 17:55:48 +0200
committerThe Arcane Brony <myrainbowdash949@gmail.com>2021-10-10 17:55:48 +0200
commit79aee5145b6b289a001caae516477c8ab641bb8f (patch)
tree9fa55053ec5da0483e1a9de0d97089aef4559068 /util/src/entities/Invite.ts
parent:bug: fix null user in identify (diff)
downloadserver-79aee5145b6b289a001caae516477c8ab641bb8f.tar.xz
Fix duplicate key
Diffstat (limited to 'util/src/entities/Invite.ts')
-rw-r--r--util/src/entities/Invite.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/src/entities/Invite.ts b/util/src/entities/Invite.ts
index 82556fab..d6b8f2f8 100644
--- a/util/src/entities/Invite.ts
+++ b/util/src/entities/Invite.ts
@@ -71,6 +71,9 @@ export class Invite extends BaseClass {
 	@Column({ nullable: true })
 	target_user_type?: number;
 
+	@Column({ nullable: true})
+	vanity_url?: boolean;
+
 	static async joinGuild(user_id: string, code: string) {
 		const invite = await Invite.findOneOrFail({ code });
 		if (invite.uses++ >= invite.max_uses && invite.max_uses !== 0) await Invite.delete({ code });