summary refs log tree commit diff
path: root/src/util/entities/Encryption.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 18:24:21 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 23:35:18 +1000
commitf44f5d7ac2d24ff836c2e1d4b2fa58da04b13052 (patch)
treea6655c41bb3db79c30fd876b06ee60fe9cf70c9b /src/util/entities/Encryption.ts
parentAllow edited_timestamp to passthrough in handleMessage (diff)
downloadserver-f44f5d7ac2d24ff836c2e1d4b2fa58da04b13052.tar.xz
Refactor to mono-repo + upgrade packages
Diffstat (limited to '')
-rw-r--r--src/util/entities/Encryption.ts (renamed from util/src/entities/Encryption.ts)24
1 files changed, 12 insertions, 12 deletions
diff --git a/util/src/entities/Encryption.ts b/src/util/entities/Encryption.ts

index 3b82ff84..b597b90a 100644 --- a/util/src/entities/Encryption.ts +++ b/src/util/entities/Encryption.ts
@@ -14,22 +14,22 @@ import { DmChannelDTO } from "../dtos"; @Entity("security_settings") export class SecuritySettings extends BaseClass { - @Column({nullable: true}) - guild_id: Snowflake; + @Column({ nullable: true }) + guild_id: string; - @Column({nullable: true}) - channel_id: Snowflake; + @Column({ nullable: true }) + channel_id: string; - @Column() - encryption_permission_mask: BitField; + @Column() + encryption_permission_mask: number; - @Column() - allowed_algorithms: string[]; + @Column({ type: "simple-array" }) + allowed_algorithms: string[]; - @Column() - current_algorithm: string; + @Column() + current_algorithm: string; - @Column({nullable: true}) - used_since_message: Snowflake; + @Column({ nullable: true }) + used_since_message: string; }