-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathchannels.schema.yml
More file actions
124 lines (122 loc) · 2.56 KB
/
channels.schema.yml
File metadata and controls
124 lines (122 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
$schema: "https://json-schema.org/draft/2020-12/schema"
$defs:
permissions:
type: object
properties:
everyone:
description: "@everyone"
$ref: '#/$defs/overwrites'
verified:
description: "Verified Member"
$ref: '#/$defs/overwrites'
blueshirt:
description: "Verified blueshirt"
$ref: '#/$defs/overwrites'
supervisor:
description: "Team Supervisor"
$ref: '#/$defs/overwrites'
unverified_blueshirt:
description: "Unverified Blueshirt"
$ref: '#/$defs/overwrites'
overwrites:
type: object
properties:
read_message_history:
type: boolean
read_messages:
type: boolean
send_messages:
type: boolean
connect:
type: boolean
speak:
type: boolean
use_voice_activation:
type: boolean
use_stage_activation:
type: boolean
manage_messages:
type: boolean
manage_channels:
type: boolean
manage_permissions:
type: boolean
manage_webhooks:
type: boolean
create_instant_invite:
type: boolean
embed_links:
type: boolean
attach_files:
type: boolean
add_reactions:
type: boolean
mention_everyone:
type: boolean
channel_type:
type: string
enum:
- text
- voice
- forum
- stage
- news
channel:
type: object
required:
- name
properties:
name:
type: string
description: Name of the channel
examples:
- off-topic
- rules
old_names:
type: array
items:
type: string
topic:
type: string
channel_type:
description: Channel type, defaults to text
$ref: '#/$defs/channel_type'
use_case:
type: string
title: Channel use case
enum:
- rules
- feed
- audit
- stats
- announce
- discord
permissions:
$ref: '#/$defs/permissions'
if:
properties:
channel_type:
const: forum
then:
properties:
tags:
type: array
default_reaction_emoji:
type: string
category:
type: object
required:
- name
- channels
properties:
name:
type: string
channels:
type: array
items:
$ref: '#/$defs/channel'
permissions:
$ref: '#/$defs/permissions'
type: array
items:
$ref: '#/$defs/category'