Perms for GET webhook, url property

This commit is contained in:
TomatoCake
2024-07-18 15:16:50 +02:00
parent 15a2e57b05
commit 873107f90d
6 changed files with 618 additions and 306 deletions
+5 -3
View File
@@ -38,20 +38,20 @@ export class Webhook extends BaseClass {
name: string;
@Column({ nullable: true })
avatar?: string;
avatar: string;
@Column({ nullable: true })
token?: string;
@Column({ nullable: true })
@RelationId((webhook: Webhook) => webhook.guild)
guild_id: string;
guild_id?: string;
@JoinColumn({ name: "guild_id" })
@ManyToOne(() => Guild, {
onDelete: "CASCADE",
})
guild: Guild;
guild?: Guild;
@Column({ nullable: true })
@RelationId((webhook: Webhook) => webhook.channel)
@@ -92,4 +92,6 @@ export class Webhook extends BaseClass {
onDelete: "CASCADE",
})
source_guild: Guild;
url?: string;
}