mirror of
https://github.com/spacebarchat/server.git
synced 2024-09-21 10:11:34 +02:00
✨ add default_auto_archive_duration to channel
This commit is contained in:
parent
31d70849bb
commit
0721484a93
@ -18,6 +18,8 @@ export const ChannelModifySchema = {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
$parent_id: String,
|
$parent_id: String,
|
||||||
|
$rtc_region: String,
|
||||||
|
$default_auto_archive_duration: Number,
|
||||||
$id: String, // kept for backwards compatibility does nothing (need for guild create)
|
$id: String, // kept for backwards compatibility does nothing (need for guild create)
|
||||||
$nsfw: Boolean
|
$nsfw: Boolean
|
||||||
};
|
};
|
||||||
@ -49,6 +51,8 @@ export interface ChannelModifySchema {
|
|||||||
parent_id?: string;
|
parent_id?: string;
|
||||||
id?: string; // is not used (only for guild create)
|
id?: string; // is not used (only for guild create)
|
||||||
nsfw?: boolean;
|
nsfw?: boolean;
|
||||||
|
rtc_region?: string;
|
||||||
|
default_auto_archive_duration?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ChannelGuildPositionUpdateSchema = [
|
export const ChannelGuildPositionUpdateSchema = [
|
||||||
|
@ -26,6 +26,7 @@ export const ChannelSchema = new Schema({
|
|||||||
last_pin_timestamp: Date,
|
last_pin_timestamp: Date,
|
||||||
nsfw: Boolean,
|
nsfw: Boolean,
|
||||||
rate_limit_per_user: Number,
|
rate_limit_per_user: Number,
|
||||||
|
default_auto_archive_duration: Number,
|
||||||
topic: String,
|
topic: String,
|
||||||
permission_overwrites: [
|
permission_overwrites: [
|
||||||
{
|
{
|
||||||
@ -60,6 +61,7 @@ export interface Channel {
|
|||||||
export interface TextBasedChannel {
|
export interface TextBasedChannel {
|
||||||
last_message_id?: string;
|
last_message_id?: string;
|
||||||
last_pin_timestamp?: number;
|
last_pin_timestamp?: number;
|
||||||
|
default_auto_archive_duration?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GuildChannel extends Channel {
|
export interface GuildChannel extends Channel {
|
||||||
|
Loading…
Reference in New Issue
Block a user