@notidotbot/noti-api-client 1.9.132 → 1.9.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/games.d.ts +2 -0
- package/dist/classes/guildBadges.d.ts +6 -0
- package/dist/classes/guildBounties.d.ts +4 -0
- package/dist/classes/guildClipForward.d.ts +5 -0
- package/dist/classes/guildDrops.d.ts +7 -1
- package/dist/classes/guildDrops.js +3 -1
- package/dist/classes/guildMessageScheduler.d.ts +4 -0
- package/dist/classes/guildRolePanel.d.ts +2 -0
- package/dist/classes/guildStarboard.d.ts +75 -0
- package/dist/classes/guildStarboard.js +38 -0
- package/dist/other/bitfields.d.ts +7 -4
- package/dist/other/bitfields.js +2 -0
- package/dist/other/features.d.ts +1 -1
- package/dist/other/features.js +2 -0
- package/dist/other/zod/clipForward.zod.d.ts +3 -0
- package/dist/other/zod/clubStreamer.zod.d.ts +2 -0
- package/dist/other/zod/guild.zod.d.ts +4 -0
- package/dist/other/zod/instagramStreamer.zod.d.ts +2 -0
- package/dist/other/zod/kickStreamer.zod.d.ts +3 -0
- package/dist/other/zod/kickStreamer.zod.js +1 -0
- package/dist/other/zod/rolePanels.zod.d.ts +2 -0
- package/dist/other/zod/rolePanels.zod.js +1 -0
- package/dist/other/zod/rssFeed.zod.d.ts +2 -0
- package/dist/other/zod/rumbleStreamer.zod.d.ts +2 -0
- package/dist/other/zod/scheduledMessage.zod.d.ts +3 -0
- package/dist/other/zod/scheduledMessage.zod.js +3 -0
- package/dist/other/zod/starboard.zod.d.ts +2 -0
- package/dist/other/zod/starboard.zod.js +2 -0
- package/dist/other/zod/tiktokStreamer.zod.d.ts +2 -0
- package/dist/other/zod/twitchStreamer.zod.d.ts +2 -0
- package/dist/other/zod/twitterStreamer.zod.d.ts +2 -0
- package/dist/other/zod/whatnotStreamer.zod.d.ts +2 -0
- package/dist/other/zod/youtubeStreamer.zod.d.ts +2 -0
- package/dist/other/zod/zod.d.ts +1 -0
- package/dist/other/zod/zod.js +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/prisma/schema/models/clipForward.prisma +2 -0
- package/prisma/schema/models/clubStreamer.prisma +2 -0
- package/prisma/schema/models/guild.prisma +3 -0
- package/prisma/schema/models/instagramStreamer.prisma +2 -0
- package/prisma/schema/models/kickStreamer.prisma +3 -0
- package/prisma/schema/models/rolePanels.prisma +1 -0
- package/prisma/schema/models/rssFeed.prisma +2 -0
- package/prisma/schema/models/rumbleStreamer.prisma +2 -0
- package/prisma/schema/models/scheduledMessage.prisma +1 -0
- package/prisma/schema/models/starboard.prisma +3 -0
- package/prisma/schema/models/tiktokStreamer.prisma +2 -0
- package/prisma/schema/models/twitchStreamer.prisma +2 -0
- package/prisma/schema/models/twitterStreamer.prisma +2 -0
- package/prisma/schema/models/whatnotStreamer.prisma +2 -0
- package/prisma/schema/models/youtubeStreamer.prisma +2 -0
package/dist/classes/games.d.ts
CHANGED
|
@@ -310,6 +310,8 @@ export interface GameConfig {
|
|
|
310
310
|
/** Show the "Toggle Notification" self-assign button for the Roblox ping role. Default `true`;
|
|
311
311
|
* `null`/absent reads as on, as with the social notifications' `showNotifyButton`. */
|
|
312
312
|
robloxShowNotifyButton?: boolean | null;
|
|
313
|
+
/** Send silently (Discord @silent): deals, changelogs and Roblox posts. Behind the silentSends flag. */
|
|
314
|
+
silent?: boolean | null;
|
|
313
315
|
/** Custom webhook identity for Roblox pings (PREMIUM — Custom Webhooks). */
|
|
314
316
|
robloxWebhookEnabled?: boolean | null;
|
|
315
317
|
robloxWebhookUsername?: string | null;
|
|
@@ -145,6 +145,9 @@ export type GuildBadgesData = {
|
|
|
145
145
|
*/
|
|
146
146
|
kickShowNotifyButton: boolean;
|
|
147
147
|
twitchShowNotifyButton: boolean;
|
|
148
|
+
/** Send silently (Discord @silent), per platform. Off unless switched on. */
|
|
149
|
+
kickSilent: boolean;
|
|
150
|
+
twitchSilent: boolean;
|
|
148
151
|
/** Where Kick badges post. Null = not set; nothing posts until it is. */
|
|
149
152
|
kickChannelId: string | null;
|
|
150
153
|
/** Role pinged on a Kick badge, or null for no ping. */
|
|
@@ -166,6 +169,9 @@ export type GuildBadgesUpdate = {
|
|
|
166
169
|
kickAllGames?: boolean;
|
|
167
170
|
kickShowNotifyButton?: boolean;
|
|
168
171
|
twitchShowNotifyButton?: boolean;
|
|
172
|
+
/** Behind the silentSends flag. */
|
|
173
|
+
kickSilent?: boolean;
|
|
174
|
+
twitchSilent?: boolean;
|
|
169
175
|
twitchAllGames?: boolean;
|
|
170
176
|
kickChannelId?: string | null;
|
|
171
177
|
kickRoleId?: string | null;
|
|
@@ -68,6 +68,8 @@ export type GuildBountiesData = {
|
|
|
68
68
|
* remove it. On unless switched off. Never shown when the ping is @everyone / @here or there is no role.
|
|
69
69
|
*/
|
|
70
70
|
showNotifyButton: boolean;
|
|
71
|
+
/** Send silently (Discord @silent). Off unless switched on. */
|
|
72
|
+
silent: boolean;
|
|
71
73
|
/** Premium Plus: the identity bounties post with. Null = the bot (and always null without Premium Plus). */
|
|
72
74
|
webhook: GuildBountiesWebhook | null;
|
|
73
75
|
limits: GuildBountiesLimits;
|
|
@@ -81,6 +83,8 @@ export type GuildBountiesUpdate = {
|
|
|
81
83
|
playerTypes?: BountyPlayerType[];
|
|
82
84
|
/** null resets it to the default (on). */
|
|
83
85
|
showNotifyButton?: boolean | null;
|
|
86
|
+
/** Behind the silentSends flag. */
|
|
87
|
+
silent?: boolean | null;
|
|
84
88
|
/** null removes it. Premium Plus. */
|
|
85
89
|
webhook?: GuildBountiesWebhook | null;
|
|
86
90
|
};
|
|
@@ -138,6 +138,7 @@ export declare class APIGuildClipForward {
|
|
|
138
138
|
content: string | null;
|
|
139
139
|
showInviteButton: boolean | null;
|
|
140
140
|
showWatchButton: boolean | null;
|
|
141
|
+
silent: boolean | null;
|
|
141
142
|
clipForwardId: string;
|
|
142
143
|
}) | null;
|
|
143
144
|
} & {
|
|
@@ -193,6 +194,7 @@ export declare class APIGuildClipForward {
|
|
|
193
194
|
content: string | null;
|
|
194
195
|
showInviteButton: boolean | null;
|
|
195
196
|
showWatchButton: boolean | null;
|
|
197
|
+
silent: boolean | null;
|
|
196
198
|
clipForwardId: string;
|
|
197
199
|
}) | null;
|
|
198
200
|
} & {
|
|
@@ -259,6 +261,7 @@ export declare class APIGuildClipForward {
|
|
|
259
261
|
content: string | null;
|
|
260
262
|
showInviteButton: boolean | null;
|
|
261
263
|
showWatchButton: boolean | null;
|
|
264
|
+
silent: boolean | null;
|
|
262
265
|
clipForwardId: string;
|
|
263
266
|
}) | null;
|
|
264
267
|
} & {
|
|
@@ -349,6 +352,7 @@ export declare class APIGuildClipForward {
|
|
|
349
352
|
content: string | null;
|
|
350
353
|
showInviteButton: boolean | null;
|
|
351
354
|
showWatchButton: boolean | null;
|
|
355
|
+
silent: boolean | null;
|
|
352
356
|
clipForwardId: string;
|
|
353
357
|
}) | null;
|
|
354
358
|
} & {
|
|
@@ -364,6 +368,7 @@ export declare class APIGuildClipForward {
|
|
|
364
368
|
content: string | null;
|
|
365
369
|
showInviteButton: boolean | null;
|
|
366
370
|
showWatchButton: boolean | null;
|
|
371
|
+
silent: boolean | null;
|
|
367
372
|
clipForwardId: string;
|
|
368
373
|
})[];
|
|
369
374
|
} & {
|
|
@@ -5,7 +5,7 @@ export declare class APIGuildDrops {
|
|
|
5
5
|
private web;
|
|
6
6
|
constructor(web: WebDataManager);
|
|
7
7
|
getGuildDrops({ auth, guildId }: GuildDropsFunctionsInput['getGuildDrops']): Promise<WebResponse<GuildDropsData>>;
|
|
8
|
-
updateGuildDrops({ auth, guildId, timezone, kickDeliveryMode, kickWindowStartHour, kickWindowEndHour, kickScheduledHours, kickScheduledWeekdays, twitchDeliveryMode, twitchWindowStartHour, twitchWindowEndHour, twitchScheduledHours, twitchScheduledWeekdays, kickEnabled, twitchEnabled, kickLiveNotifications, twitchLiveNotifications, kickChannelId, twitchChannelId, kickRoleId, twitchRoleId, kickLiveNotificationChannelId, kickLiveNotificationRoleId, twitchLiveNotificationChannelId, twitchLiveNotificationRoleId, kickShowNotifyButton, twitchShowNotifyButton, kickLiveShowNotifyButton, twitchLiveShowNotifyButton, webhook, games, kickGames, twitchGames }: GuildDropsFunctionsInput['updateGuildDrops']): Promise<WebResponse<GuildDropsData>>;
|
|
8
|
+
updateGuildDrops({ auth, guildId, timezone, kickDeliveryMode, kickWindowStartHour, kickWindowEndHour, kickScheduledHours, kickScheduledWeekdays, twitchDeliveryMode, twitchWindowStartHour, twitchWindowEndHour, twitchScheduledHours, twitchScheduledWeekdays, kickEnabled, twitchEnabled, kickLiveNotifications, twitchLiveNotifications, kickChannelId, twitchChannelId, kickRoleId, twitchRoleId, kickLiveNotificationChannelId, kickLiveNotificationRoleId, twitchLiveNotificationChannelId, twitchLiveNotificationRoleId, kickShowNotifyButton, twitchShowNotifyButton, kickLiveShowNotifyButton, twitchLiveShowNotifyButton, kickSilent, twitchSilent, webhook, games, kickGames, twitchGames }: GuildDropsFunctionsInput['updateGuildDrops']): Promise<WebResponse<GuildDropsData>>;
|
|
9
9
|
/**
|
|
10
10
|
* Sends a sample drop to the guild's configured drops channel, through the same path a real drop
|
|
11
11
|
* takes.
|
|
@@ -113,6 +113,9 @@ export type GuildDropsFunctionsInput = {
|
|
|
113
113
|
twitchShowNotifyButton?: boolean | null;
|
|
114
114
|
kickLiveShowNotifyButton?: boolean | null;
|
|
115
115
|
twitchLiveShowNotifyButton?: boolean | null;
|
|
116
|
+
/** Send silently (Discord @silent) for every drop post on that platform. Behind the silentSends flag. */
|
|
117
|
+
kickSilent?: boolean | null;
|
|
118
|
+
twitchSilent?: boolean | null;
|
|
116
119
|
webhook?: {
|
|
117
120
|
username?: string | null;
|
|
118
121
|
avatarUrl?: string | null;
|
|
@@ -212,6 +215,9 @@ export type GuildDropsData = {
|
|
|
212
215
|
twitchShowNotifyButton: boolean;
|
|
213
216
|
kickLiveShowNotifyButton: boolean;
|
|
214
217
|
twitchLiveShowNotifyButton: boolean;
|
|
218
|
+
/** Send silently (Discord @silent): the post shows, phones do not buzz. Off unless switched on. */
|
|
219
|
+
kickSilent: boolean;
|
|
220
|
+
twitchSilent: boolean;
|
|
215
221
|
webhook: WebhookConfig | null;
|
|
216
222
|
games: GameDropConfig[];
|
|
217
223
|
};
|
|
@@ -14,7 +14,7 @@ class APIGuildDrops {
|
|
|
14
14
|
endpoint: this.web.qp(`/data/guild/${guildId}/drops`),
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
async updateGuildDrops({ auth, guildId, timezone, kickDeliveryMode, kickWindowStartHour, kickWindowEndHour, kickScheduledHours, kickScheduledWeekdays, twitchDeliveryMode, twitchWindowStartHour, twitchWindowEndHour, twitchScheduledHours, twitchScheduledWeekdays, kickEnabled, twitchEnabled, kickLiveNotifications, twitchLiveNotifications, kickChannelId, twitchChannelId, kickRoleId, twitchRoleId, kickLiveNotificationChannelId, kickLiveNotificationRoleId, twitchLiveNotificationChannelId, twitchLiveNotificationRoleId, kickShowNotifyButton, twitchShowNotifyButton, kickLiveShowNotifyButton, twitchLiveShowNotifyButton, webhook, games, kickGames, twitchGames }) {
|
|
17
|
+
async updateGuildDrops({ auth, guildId, timezone, kickDeliveryMode, kickWindowStartHour, kickWindowEndHour, kickScheduledHours, kickScheduledWeekdays, twitchDeliveryMode, twitchWindowStartHour, twitchWindowEndHour, twitchScheduledHours, twitchScheduledWeekdays, kickEnabled, twitchEnabled, kickLiveNotifications, twitchLiveNotifications, kickChannelId, twitchChannelId, kickRoleId, twitchRoleId, kickLiveNotificationChannelId, kickLiveNotificationRoleId, twitchLiveNotificationChannelId, twitchLiveNotificationRoleId, kickShowNotifyButton, twitchShowNotifyButton, kickLiveShowNotifyButton, twitchLiveShowNotifyButton, kickSilent, twitchSilent, webhook, games, kickGames, twitchGames }) {
|
|
18
18
|
return await this.web.request({
|
|
19
19
|
method: 'PATCH', auth,
|
|
20
20
|
endpoint: this.web.qp(`/data/guild/${guildId}/drops`),
|
|
@@ -46,6 +46,8 @@ class APIGuildDrops {
|
|
|
46
46
|
twitchShowNotifyButton,
|
|
47
47
|
kickLiveShowNotifyButton,
|
|
48
48
|
twitchLiveShowNotifyButton,
|
|
49
|
+
kickSilent,
|
|
50
|
+
twitchSilent,
|
|
49
51
|
webhook,
|
|
50
52
|
games,
|
|
51
53
|
kickGames,
|
|
@@ -128,6 +128,8 @@ export type ScheduledMessageCreateBody = {
|
|
|
128
128
|
webhookEnabled?: boolean;
|
|
129
129
|
webhookUsername?: string | null;
|
|
130
130
|
webhookAvatarUrl?: string | null;
|
|
131
|
+
/** Send silently (Discord @silent): the post shows, phones do not buzz. Behind the silentSends flag (403 if on without it). */
|
|
132
|
+
silent?: boolean | null;
|
|
131
133
|
};
|
|
132
134
|
export type ScheduledMessageEditBody = {
|
|
133
135
|
content?: string;
|
|
@@ -148,4 +150,6 @@ export type ScheduledMessageEditBody = {
|
|
|
148
150
|
date?: string | null;
|
|
149
151
|
/** `HH:mm` in UTC, with `date`. */
|
|
150
152
|
time?: string | null;
|
|
153
|
+
/** Send silently (Discord @silent): the post shows, phones do not buzz. Behind the silentSends flag (403 if on without it). */
|
|
154
|
+
silent?: boolean | null;
|
|
151
155
|
};
|
|
@@ -59,6 +59,7 @@ export declare class APIGuildRolePanel {
|
|
|
59
59
|
name: string;
|
|
60
60
|
dbId: string;
|
|
61
61
|
guildId: string;
|
|
62
|
+
silent: boolean | null;
|
|
62
63
|
channelId: string;
|
|
63
64
|
messageId: string | null;
|
|
64
65
|
webhookEnabled: boolean;
|
|
@@ -129,6 +130,7 @@ export declare class APIGuildRolePanel {
|
|
|
129
130
|
name: string;
|
|
130
131
|
dbId: string;
|
|
131
132
|
guildId: string;
|
|
133
|
+
silent: boolean | null;
|
|
132
134
|
channelId: string;
|
|
133
135
|
messageId: string | null;
|
|
134
136
|
webhookEnabled: boolean;
|
|
@@ -16,6 +16,7 @@ export declare class APIGuildStarboard {
|
|
|
16
16
|
} & {
|
|
17
17
|
dbId: string;
|
|
18
18
|
guildId: string;
|
|
19
|
+
silent: boolean | null;
|
|
19
20
|
channelId: string;
|
|
20
21
|
enabled: boolean | null;
|
|
21
22
|
threshold: number | null;
|
|
@@ -27,11 +28,50 @@ export declare class APIGuildStarboard {
|
|
|
27
28
|
deleteIfLost: boolean | null;
|
|
28
29
|
rewardRole: string | null;
|
|
29
30
|
openThreadOnStar: boolean | null;
|
|
31
|
+
showOnStream: boolean | null;
|
|
30
32
|
})[]>>;
|
|
31
33
|
createStarboard({ auth, guildId, body }: GuildStarboardFunctionsInput['createStarboard']): Promise<import("../types").WebResponse<string>>;
|
|
32
34
|
updateStarboard({ auth, guildId, channelId, body }: GuildStarboardFunctionsInput['updateStarboard']): Promise<import("../types").WebResponse<string>>;
|
|
33
35
|
deleteStarboard({ auth, guildId, channelId }: GuildStarboardFunctionsInput['deleteStarboard']): Promise<import("../types").WebResponse<string>>;
|
|
36
|
+
getStarboardWidget({ auth, guildId }: GuildStarboardFunctionsInput['getStarboardWidget']): Promise<import("../types").WebResponse<StarboardWidgetSettings>>;
|
|
37
|
+
updateStarboardWidget({ auth, guildId, body }: GuildStarboardFunctionsInput['updateStarboardWidget']): Promise<import("../types").WebResponse<StarboardWidgetSettings>>;
|
|
38
|
+
/** A new OBS link; the old one stops working at once. */
|
|
39
|
+
rotateStarboardWidgetToken({ auth, guildId }: GuildStarboardFunctionsInput['rotateStarboardWidgetToken']): Promise<import("../types").WebResponse<StarboardWidgetSettings>>;
|
|
40
|
+
/** A new link for one starboard (`channelId` = the starboard channel); only that link stops working. 404 if no such starboard. */
|
|
41
|
+
rotateStarboardWidgetStarboardToken({ auth, guildId, channelId }: GuildStarboardFunctionsInput['rotateStarboardWidgetStarboardToken']): Promise<import("../types").WebResponse<StarboardWidgetSettings>>;
|
|
42
|
+
/**
|
|
43
|
+
* Pushes a sample card to the open overlay. 409 with the reason when the widget is off; 429 when pressed too fast.
|
|
44
|
+
* `body.channelId` aims it at one starboard's link (the server link shows it too); 404 if no such starboard.
|
|
45
|
+
*/
|
|
46
|
+
sendStarboardWidgetTestCard({ auth, guildId, body }: GuildStarboardFunctionsInput['sendStarboardWidgetTestCard']): Promise<import("../types").WebResponse<{
|
|
47
|
+
sent: true;
|
|
48
|
+
}>>;
|
|
34
49
|
}
|
|
50
|
+
/** The stream widget's settings card. `url` is the OBS browser-source link (it holds the secret). */
|
|
51
|
+
export type StarboardWidgetSettings = {
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
/** Seconds each card stays on screen, 3-60. */
|
|
54
|
+
displaySeconds: number;
|
|
55
|
+
showImages: boolean;
|
|
56
|
+
/** The card design. Any link can override it for that one OBS source with `?theme=<id>` (also for previews). */
|
|
57
|
+
theme: StarboardWidgetTheme;
|
|
58
|
+
/** Right-click "Show on Stream" only on messages in a starboard channel (or a thread under one). Default true. */
|
|
59
|
+
rightClickStarboardOnly: boolean;
|
|
60
|
+
/** The server link: every starboard's cards, plus right-clicks from outside starboard channels. */
|
|
61
|
+
url: string;
|
|
62
|
+
/** One link per starboard, showing only that starboard's cards. Settings above apply to every link. */
|
|
63
|
+
starboards: StarboardWidgetLink[];
|
|
64
|
+
limits: {
|
|
65
|
+
plus: boolean;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export type StarboardWidgetLink = {
|
|
69
|
+
channelId: string;
|
|
70
|
+
url: string;
|
|
71
|
+
};
|
|
72
|
+
/** Mirrors the bot's WIDGET_THEMES (modules/starboards/widget.ts). `classic` is the default. Any other value: 400. */
|
|
73
|
+
export type StarboardWidgetTheme = 'classic' | 'compact' | 'light' | 'minimal';
|
|
74
|
+
export type StarboardWidgetUpdate = Partial<Pick<StarboardWidgetSettings, 'enabled' | 'displaySeconds' | 'showImages' | 'theme' | 'rightClickStarboardOnly'>>;
|
|
35
75
|
export type GuildStarboardFunctionsInput = {
|
|
36
76
|
'getGuildStarboards': {
|
|
37
77
|
auth: string;
|
|
@@ -53,6 +93,31 @@ export type GuildStarboardFunctionsInput = {
|
|
|
53
93
|
guildId: string;
|
|
54
94
|
channelId: string;
|
|
55
95
|
};
|
|
96
|
+
'getStarboardWidget': {
|
|
97
|
+
auth: string;
|
|
98
|
+
guildId: string;
|
|
99
|
+
};
|
|
100
|
+
'updateStarboardWidget': {
|
|
101
|
+
auth: string;
|
|
102
|
+
guildId: string;
|
|
103
|
+
body: StarboardWidgetUpdate;
|
|
104
|
+
};
|
|
105
|
+
'rotateStarboardWidgetToken': {
|
|
106
|
+
auth: string;
|
|
107
|
+
guildId: string;
|
|
108
|
+
};
|
|
109
|
+
'rotateStarboardWidgetStarboardToken': {
|
|
110
|
+
auth: string;
|
|
111
|
+
guildId: string;
|
|
112
|
+
channelId: string;
|
|
113
|
+
};
|
|
114
|
+
'sendStarboardWidgetTestCard': {
|
|
115
|
+
auth: string;
|
|
116
|
+
guildId: string;
|
|
117
|
+
body?: {
|
|
118
|
+
channelId?: string | null;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
56
121
|
};
|
|
57
122
|
export type GuildStarboardReturnTypes = {
|
|
58
123
|
'getGuildStarboardsRaw': Awaited<ReturnType<APIGuildStarboard['getGuildStarboards']>>;
|
|
@@ -63,4 +128,14 @@ export type GuildStarboardReturnTypes = {
|
|
|
63
128
|
'updateStarboardSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuildStarboard['updateStarboard']>>>;
|
|
64
129
|
'deleteStarboardRaw': Awaited<ReturnType<APIGuildStarboard['deleteStarboard']>>;
|
|
65
130
|
'deleteStarboardSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuildStarboard['deleteStarboard']>>>;
|
|
131
|
+
'getStarboardWidgetRaw': Awaited<ReturnType<APIGuildStarboard['getStarboardWidget']>>;
|
|
132
|
+
'getStarboardWidgetSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuildStarboard['getStarboardWidget']>>>;
|
|
133
|
+
'updateStarboardWidgetRaw': Awaited<ReturnType<APIGuildStarboard['updateStarboardWidget']>>;
|
|
134
|
+
'updateStarboardWidgetSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuildStarboard['updateStarboardWidget']>>>;
|
|
135
|
+
'rotateStarboardWidgetTokenRaw': Awaited<ReturnType<APIGuildStarboard['rotateStarboardWidgetToken']>>;
|
|
136
|
+
'rotateStarboardWidgetTokenSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuildStarboard['rotateStarboardWidgetToken']>>>;
|
|
137
|
+
'rotateStarboardWidgetStarboardTokenRaw': Awaited<ReturnType<APIGuildStarboard['rotateStarboardWidgetStarboardToken']>>;
|
|
138
|
+
'rotateStarboardWidgetStarboardTokenSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuildStarboard['rotateStarboardWidgetStarboardToken']>>>;
|
|
139
|
+
'sendStarboardWidgetTestCardRaw': Awaited<ReturnType<APIGuildStarboard['sendStarboardWidgetTestCard']>>;
|
|
140
|
+
'sendStarboardWidgetTestCardSuccess': CancelOutWebResponses<Awaited<ReturnType<APIGuildStarboard['sendStarboardWidgetTestCard']>>>;
|
|
66
141
|
};
|
|
@@ -32,5 +32,43 @@ class APIGuildStarboard {
|
|
|
32
32
|
endpoint: this.web.qp('/data/starboards/' + guildId + '/' + channelId),
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
+
// Starboard Stream Widget (Premium Plus, behind the starboardWidget flag). The settings are made on first read.
|
|
36
|
+
async getStarboardWidget({ auth, guildId }) {
|
|
37
|
+
return await this.web.request({
|
|
38
|
+
method: 'GET', auth,
|
|
39
|
+
endpoint: this.web.qp('/data/starboardwidgets/' + guildId),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
async updateStarboardWidget({ auth, guildId, body }) {
|
|
43
|
+
return await this.web.request({
|
|
44
|
+
method: 'PATCH', auth, body,
|
|
45
|
+
endpoint: this.web.qp('/data/starboardwidgets/' + guildId),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/** A new OBS link; the old one stops working at once. */
|
|
49
|
+
async rotateStarboardWidgetToken({ auth, guildId }) {
|
|
50
|
+
return await this.web.request({
|
|
51
|
+
method: 'POST', auth,
|
|
52
|
+
endpoint: this.web.qp('/data/starboardwidgets/' + guildId + '/token'),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/** A new link for one starboard (`channelId` = the starboard channel); only that link stops working. 404 if no such starboard. */
|
|
56
|
+
async rotateStarboardWidgetStarboardToken({ auth, guildId, channelId }) {
|
|
57
|
+
return await this.web.request({
|
|
58
|
+
method: 'POST', auth,
|
|
59
|
+
endpoint: this.web.qp('/data/starboardwidgets/' + guildId + '/starboards/' + channelId + '/token'),
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Pushes a sample card to the open overlay. 409 with the reason when the widget is off; 429 when pressed too fast.
|
|
64
|
+
* `body.channelId` aims it at one starboard's link (the server link shows it too); 404 if no such starboard.
|
|
65
|
+
*/
|
|
66
|
+
async sendStarboardWidgetTestCard({ auth, guildId, body }) {
|
|
67
|
+
return await this.web.request({
|
|
68
|
+
method: 'POST', auth,
|
|
69
|
+
endpoint: this.web.qp('/data/starboardwidgets/' + guildId + '/test'),
|
|
70
|
+
body: body ?? {},
|
|
71
|
+
});
|
|
72
|
+
}
|
|
35
73
|
}
|
|
36
74
|
exports.APIGuildStarboard = APIGuildStarboard;
|
|
@@ -146,6 +146,7 @@ export declare const GuildFeatures: {
|
|
|
146
146
|
KickJoinGate: bigint;
|
|
147
147
|
KickBadgeAntiAbuse: bigint;
|
|
148
148
|
InstagramNotifications: bigint;
|
|
149
|
+
StarboardWidget: bigint;
|
|
149
150
|
};
|
|
150
151
|
export declare const GuildFeaturesText: Record<keyof typeof GuildFeatures, string>;
|
|
151
152
|
export declare const UserFeatures: {
|
|
@@ -280,8 +281,9 @@ export declare class GuildFeaturesManager extends BitFieldManager<typeof GuildFe
|
|
|
280
281
|
KickJoinGate: bigint;
|
|
281
282
|
KickBadgeAntiAbuse: bigint;
|
|
282
283
|
InstagramNotifications: bigint;
|
|
284
|
+
StarboardWidget: bigint;
|
|
283
285
|
};
|
|
284
|
-
t: Record<"StickyMessages" | "LinkedRoles" | "StatusRoles" | "Starboards" | "KickClips" | "StatCounters" | "BaseSyncableRoles" | "FullSyncableRoles" | "LiveRole" | "VoteSkipping" | "KickAuditLogs" | "LeaderboardCommand" | "RefreshingLeaderboard" | "LeaderBoardSyncRoles" | "BetaAccess" | "PriorityNotifications" | "KickNotifications" | "TwitchNotifications" | "ImportEmojis" | "ImportEmojisWithSub" | "CustomWebhooks" | "AnyMessageEditor" | "SyncSocialUsernames" | "AutoDeleteNotifications" | "TestNotificationCommand" | "CustomCooldowns" | "WelcomeAndLeaveNotifications" | "NotificationPingRoleId" | "SwitchStreamerAndGuildEmbeds" | "BirthdayNotifications" | "AllowNotSendingOfflineNotifications" | "AutoStatusLiveRoles" | "RumbleNotifications" | "AllowAutoPublishNotifications" | "NotificationOverrides" | "UseCustomButtons" | "AllowVodFeatures" | "TikTokNotifications" | "ManageBranding" | "CustomStarboards" | "AutoThreadOnStarboard" | "StarboardRewardRole" | "Giveaways" | "GiveawayLogs" | "ModifyGiveawayWhileRunning" | "ScheduleGiveaways" | "GiveawayRequirements" | "GiveawayBonusEntries" | "GiveawayEntryLimit" | "DisableDoubleVoteEntry" | "YouTubeNotifications" | "RandomMessages" | "WeeklyBirthdayPanel" | "GameNotifications" | "GameCategoryRouting" | "GameAllTimeLowAlerts" | "GameChangelogs" | "GameRobloxTracking" | "FixUrlWebhook" | "FixUrlCustomRules" | "KickClipperSubscribe" | "WhatnotNotifications" | "ScheduledEventMessages" | "ScheduledMessageWebhooks" | "ReactionRoles" | "AdvancedRolePanels" | "KickClipForwarding" | "TwitchClipForwarding" | "ClubNotifications" | "RolePanelWebhooks" | "Fishing" | "FishingCustomization" | "FishingWebhooks" | "StreamRoles" | "RoleFilters" | "TwitterNotifications" | "TwitterLiveNotifications" | "BadgeAllGames" | "AutoRoles" | "AutoRoleTimers" | "AutoRoleInvites" | "StickyMessageRoleFilters" | "GiveawayClaims" | "GiveawayWinnerRole" | "InfluencerPanel" | "InfluencerPanelPremium" | "InfluencerPanelPlus" | "StatusRoleKeepOnOffline" | "YouTubeReplayChannel" | "LivePostUpdates" | "MultiDestination" | "InGameRewards" | "BoostNotifications" | "BoostLogsAndStreaks" | "BoostBoard" | "UnlimitedEmojiRepositions" | "BirthdayPostOptions" | "JoinAnniversaries" | "ScheduledStreams" | "RssNotifications" | "RssAutoThread" | "FixUrlDeleteWithOriginal" | "LongBirthdayPanel" | "KickBadgeAutoSync" | "KickJoinGate" | "KickBadgeAntiAbuse" | "InstagramNotifications", string>;
|
|
286
|
+
t: Record<"StickyMessages" | "LinkedRoles" | "StatusRoles" | "Starboards" | "KickClips" | "StatCounters" | "BaseSyncableRoles" | "FullSyncableRoles" | "LiveRole" | "VoteSkipping" | "KickAuditLogs" | "LeaderboardCommand" | "RefreshingLeaderboard" | "LeaderBoardSyncRoles" | "BetaAccess" | "PriorityNotifications" | "KickNotifications" | "TwitchNotifications" | "ImportEmojis" | "ImportEmojisWithSub" | "CustomWebhooks" | "AnyMessageEditor" | "SyncSocialUsernames" | "AutoDeleteNotifications" | "TestNotificationCommand" | "CustomCooldowns" | "WelcomeAndLeaveNotifications" | "NotificationPingRoleId" | "SwitchStreamerAndGuildEmbeds" | "BirthdayNotifications" | "AllowNotSendingOfflineNotifications" | "AutoStatusLiveRoles" | "RumbleNotifications" | "AllowAutoPublishNotifications" | "NotificationOverrides" | "UseCustomButtons" | "AllowVodFeatures" | "TikTokNotifications" | "ManageBranding" | "CustomStarboards" | "AutoThreadOnStarboard" | "StarboardRewardRole" | "Giveaways" | "GiveawayLogs" | "ModifyGiveawayWhileRunning" | "ScheduleGiveaways" | "GiveawayRequirements" | "GiveawayBonusEntries" | "GiveawayEntryLimit" | "DisableDoubleVoteEntry" | "YouTubeNotifications" | "RandomMessages" | "WeeklyBirthdayPanel" | "GameNotifications" | "GameCategoryRouting" | "GameAllTimeLowAlerts" | "GameChangelogs" | "GameRobloxTracking" | "FixUrlWebhook" | "FixUrlCustomRules" | "KickClipperSubscribe" | "WhatnotNotifications" | "ScheduledEventMessages" | "ScheduledMessageWebhooks" | "ReactionRoles" | "AdvancedRolePanels" | "KickClipForwarding" | "TwitchClipForwarding" | "ClubNotifications" | "RolePanelWebhooks" | "Fishing" | "FishingCustomization" | "FishingWebhooks" | "StreamRoles" | "RoleFilters" | "TwitterNotifications" | "TwitterLiveNotifications" | "BadgeAllGames" | "AutoRoles" | "AutoRoleTimers" | "AutoRoleInvites" | "StickyMessageRoleFilters" | "GiveawayClaims" | "GiveawayWinnerRole" | "InfluencerPanel" | "InfluencerPanelPremium" | "InfluencerPanelPlus" | "StatusRoleKeepOnOffline" | "YouTubeReplayChannel" | "LivePostUpdates" | "MultiDestination" | "InGameRewards" | "BoostNotifications" | "BoostLogsAndStreaks" | "BoostBoard" | "UnlimitedEmojiRepositions" | "BirthdayPostOptions" | "JoinAnniversaries" | "ScheduledStreams" | "RssNotifications" | "RssAutoThread" | "FixUrlDeleteWithOriginal" | "LongBirthdayPanel" | "KickBadgeAutoSync" | "KickJoinGate" | "KickBadgeAntiAbuse" | "InstagramNotifications" | "StarboardWidget", string>;
|
|
285
287
|
all: bigint;
|
|
286
288
|
static b: {
|
|
287
289
|
BaseSyncableRoles: bigint;
|
|
@@ -391,8 +393,9 @@ export declare class GuildFeaturesManager extends BitFieldManager<typeof GuildFe
|
|
|
391
393
|
KickJoinGate: bigint;
|
|
392
394
|
KickBadgeAntiAbuse: bigint;
|
|
393
395
|
InstagramNotifications: bigint;
|
|
396
|
+
StarboardWidget: bigint;
|
|
394
397
|
};
|
|
395
|
-
static t: Record<"StickyMessages" | "LinkedRoles" | "StatusRoles" | "Starboards" | "KickClips" | "StatCounters" | "BaseSyncableRoles" | "FullSyncableRoles" | "LiveRole" | "VoteSkipping" | "KickAuditLogs" | "LeaderboardCommand" | "RefreshingLeaderboard" | "LeaderBoardSyncRoles" | "BetaAccess" | "PriorityNotifications" | "KickNotifications" | "TwitchNotifications" | "ImportEmojis" | "ImportEmojisWithSub" | "CustomWebhooks" | "AnyMessageEditor" | "SyncSocialUsernames" | "AutoDeleteNotifications" | "TestNotificationCommand" | "CustomCooldowns" | "WelcomeAndLeaveNotifications" | "NotificationPingRoleId" | "SwitchStreamerAndGuildEmbeds" | "BirthdayNotifications" | "AllowNotSendingOfflineNotifications" | "AutoStatusLiveRoles" | "RumbleNotifications" | "AllowAutoPublishNotifications" | "NotificationOverrides" | "UseCustomButtons" | "AllowVodFeatures" | "TikTokNotifications" | "ManageBranding" | "CustomStarboards" | "AutoThreadOnStarboard" | "StarboardRewardRole" | "Giveaways" | "GiveawayLogs" | "ModifyGiveawayWhileRunning" | "ScheduleGiveaways" | "GiveawayRequirements" | "GiveawayBonusEntries" | "GiveawayEntryLimit" | "DisableDoubleVoteEntry" | "YouTubeNotifications" | "RandomMessages" | "WeeklyBirthdayPanel" | "GameNotifications" | "GameCategoryRouting" | "GameAllTimeLowAlerts" | "GameChangelogs" | "GameRobloxTracking" | "FixUrlWebhook" | "FixUrlCustomRules" | "KickClipperSubscribe" | "WhatnotNotifications" | "ScheduledEventMessages" | "ScheduledMessageWebhooks" | "ReactionRoles" | "AdvancedRolePanels" | "KickClipForwarding" | "TwitchClipForwarding" | "ClubNotifications" | "RolePanelWebhooks" | "Fishing" | "FishingCustomization" | "FishingWebhooks" | "StreamRoles" | "RoleFilters" | "TwitterNotifications" | "TwitterLiveNotifications" | "BadgeAllGames" | "AutoRoles" | "AutoRoleTimers" | "AutoRoleInvites" | "StickyMessageRoleFilters" | "GiveawayClaims" | "GiveawayWinnerRole" | "InfluencerPanel" | "InfluencerPanelPremium" | "InfluencerPanelPlus" | "StatusRoleKeepOnOffline" | "YouTubeReplayChannel" | "LivePostUpdates" | "MultiDestination" | "InGameRewards" | "BoostNotifications" | "BoostLogsAndStreaks" | "BoostBoard" | "UnlimitedEmojiRepositions" | "BirthdayPostOptions" | "JoinAnniversaries" | "ScheduledStreams" | "RssNotifications" | "RssAutoThread" | "FixUrlDeleteWithOriginal" | "LongBirthdayPanel" | "KickBadgeAutoSync" | "KickJoinGate" | "KickBadgeAntiAbuse" | "InstagramNotifications", string>;
|
|
398
|
+
static t: Record<"StickyMessages" | "LinkedRoles" | "StatusRoles" | "Starboards" | "KickClips" | "StatCounters" | "BaseSyncableRoles" | "FullSyncableRoles" | "LiveRole" | "VoteSkipping" | "KickAuditLogs" | "LeaderboardCommand" | "RefreshingLeaderboard" | "LeaderBoardSyncRoles" | "BetaAccess" | "PriorityNotifications" | "KickNotifications" | "TwitchNotifications" | "ImportEmojis" | "ImportEmojisWithSub" | "CustomWebhooks" | "AnyMessageEditor" | "SyncSocialUsernames" | "AutoDeleteNotifications" | "TestNotificationCommand" | "CustomCooldowns" | "WelcomeAndLeaveNotifications" | "NotificationPingRoleId" | "SwitchStreamerAndGuildEmbeds" | "BirthdayNotifications" | "AllowNotSendingOfflineNotifications" | "AutoStatusLiveRoles" | "RumbleNotifications" | "AllowAutoPublishNotifications" | "NotificationOverrides" | "UseCustomButtons" | "AllowVodFeatures" | "TikTokNotifications" | "ManageBranding" | "CustomStarboards" | "AutoThreadOnStarboard" | "StarboardRewardRole" | "Giveaways" | "GiveawayLogs" | "ModifyGiveawayWhileRunning" | "ScheduleGiveaways" | "GiveawayRequirements" | "GiveawayBonusEntries" | "GiveawayEntryLimit" | "DisableDoubleVoteEntry" | "YouTubeNotifications" | "RandomMessages" | "WeeklyBirthdayPanel" | "GameNotifications" | "GameCategoryRouting" | "GameAllTimeLowAlerts" | "GameChangelogs" | "GameRobloxTracking" | "FixUrlWebhook" | "FixUrlCustomRules" | "KickClipperSubscribe" | "WhatnotNotifications" | "ScheduledEventMessages" | "ScheduledMessageWebhooks" | "ReactionRoles" | "AdvancedRolePanels" | "KickClipForwarding" | "TwitchClipForwarding" | "ClubNotifications" | "RolePanelWebhooks" | "Fishing" | "FishingCustomization" | "FishingWebhooks" | "StreamRoles" | "RoleFilters" | "TwitterNotifications" | "TwitterLiveNotifications" | "BadgeAllGames" | "AutoRoles" | "AutoRoleTimers" | "AutoRoleInvites" | "StickyMessageRoleFilters" | "GiveawayClaims" | "GiveawayWinnerRole" | "InfluencerPanel" | "InfluencerPanelPremium" | "InfluencerPanelPlus" | "StatusRoleKeepOnOffline" | "YouTubeReplayChannel" | "LivePostUpdates" | "MultiDestination" | "InGameRewards" | "BoostNotifications" | "BoostLogsAndStreaks" | "BoostBoard" | "UnlimitedEmojiRepositions" | "BirthdayPostOptions" | "JoinAnniversaries" | "ScheduledStreams" | "RssNotifications" | "RssAutoThread" | "FixUrlDeleteWithOriginal" | "LongBirthdayPanel" | "KickBadgeAutoSync" | "KickJoinGate" | "KickBadgeAntiAbuse" | "InstagramNotifications" | "StarboardWidget", string>;
|
|
396
399
|
static all: bigint;
|
|
397
400
|
convertBitToField<T extends EnumValues<typeof GuildFeatures>>(bit: T): string | null;
|
|
398
401
|
}
|
|
@@ -430,7 +433,7 @@ export declare class UserFlagsManager extends BitFieldManager<typeof UserFlags,
|
|
|
430
433
|
Beta: bigint;
|
|
431
434
|
Owner: bigint;
|
|
432
435
|
};
|
|
433
|
-
t: Record<"
|
|
436
|
+
t: Record<"Partner" | "Premium" | "Staff" | "Developer" | "Beta" | "Owner", string>;
|
|
434
437
|
all: bigint;
|
|
435
438
|
static b: {
|
|
436
439
|
Partner: bigint;
|
|
@@ -440,7 +443,7 @@ export declare class UserFlagsManager extends BitFieldManager<typeof UserFlags,
|
|
|
440
443
|
Beta: bigint;
|
|
441
444
|
Owner: bigint;
|
|
442
445
|
};
|
|
443
|
-
static t: Record<"
|
|
446
|
+
static t: Record<"Partner" | "Premium" | "Staff" | "Developer" | "Beta" | "Owner", string>;
|
|
444
447
|
static all: bigint;
|
|
445
448
|
convertBitToField<T extends EnumValues<typeof UserFlags>>(bit: T): string | null;
|
|
446
449
|
}
|
package/dist/other/bitfields.js
CHANGED
|
@@ -258,6 +258,7 @@ exports.GuildFeatures = {
|
|
|
258
258
|
KickJoinGate: 1n << 105n, // Premium Plus: fans with the required Kick badge join the server through the link.
|
|
259
259
|
KickBadgeAntiAbuse: 1n << 106n, // Premium Plus: Kick account switch rule, minimum Discord / follow age.
|
|
260
260
|
InstagramNotifications: 1n << 107n, // Premium (Plus inherits), paid only: Instagram posts (phases/instagram/). Limits 0 / 2 / 5, $0.75 add-on.
|
|
261
|
+
StarboardWidget: 1n << 108n, // Premium Plus: starboard messages on stream, an OBS overlay (phases/starboard-widget/).
|
|
261
262
|
};
|
|
262
263
|
exports.GuildFeaturesText = {
|
|
263
264
|
BaseSyncableRoles: 'Basic Syncable Roles',
|
|
@@ -369,6 +370,7 @@ exports.GuildFeaturesText = {
|
|
|
369
370
|
KickJoinGate: 'Kick Sub-Only Join',
|
|
370
371
|
KickBadgeAntiAbuse: 'Kick Badge Anti-Abuse',
|
|
371
372
|
InstagramNotifications: 'Instagram Notifications',
|
|
373
|
+
StarboardWidget: 'Starboard Stream Widget',
|
|
372
374
|
};
|
|
373
375
|
exports.UserFeatures = {
|
|
374
376
|
HasOneServerPremium: 1n << 0n,
|
package/dist/other/features.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const FEATURE_NAMES: readonly ["freeGames", "gameChangelogs", "robloxNotifications", "fixLinks", "clipperNotifications", "scheduledMessages", "linkedRoles", "reactionRoles", "clipForwarding", "club", "whatnot", "fishing", "giveaways", "starboards", "syncedRoles", "birthdays", "statusRoles", "autoStatusLiveRoles", "streamRoles", "badgeNotifications", "kickBounties", "autoRoles", "giveawayClaims", "influencerPanel", "publicGiveaways", "publicDrops", "sitePolls", "siteAnnouncements", "feedback", "offlineGracePeriod", "vodNotifications", "youtubeReplays", "livePostUpdates", "multiDestination", "scheduledStreams", "inGame", "boostNotifications", "twitter", "voteToTest", "voteToAddSocial", "aiAssistant", "voteToUseAssistant", "assistantShareChat", "latest", "latestYoutube", "repositionEmojis", "kickBadgeAuto", "voteToRepositionEmojis", "setupWizard", "emotes", "liveRoles", "stickyMessages", "welcomeLeave", "statCounters", "voteSkipping", "referralRewards", "votePremium", "rss", "instagram", "dashboardTour", "leaveFeedback", "setupMcp", "setupChangeLog", "watchTogetherButton"];
|
|
1
|
+
export declare const FEATURE_NAMES: readonly ["freeGames", "gameChangelogs", "robloxNotifications", "fixLinks", "clipperNotifications", "scheduledMessages", "linkedRoles", "reactionRoles", "clipForwarding", "club", "whatnot", "fishing", "giveaways", "starboards", "syncedRoles", "birthdays", "statusRoles", "autoStatusLiveRoles", "streamRoles", "badgeNotifications", "kickBounties", "autoRoles", "giveawayClaims", "influencerPanel", "publicGiveaways", "publicDrops", "sitePolls", "siteAnnouncements", "feedback", "offlineGracePeriod", "vodNotifications", "youtubeReplays", "livePostUpdates", "multiDestination", "scheduledStreams", "inGame", "boostNotifications", "twitter", "voteToTest", "voteToAddSocial", "aiAssistant", "voteToUseAssistant", "assistantShareChat", "latest", "latestYoutube", "repositionEmojis", "kickBadgeAuto", "voteToRepositionEmojis", "setupWizard", "emotes", "liveRoles", "stickyMessages", "welcomeLeave", "statCounters", "voteSkipping", "referralRewards", "votePremium", "rss", "instagram", "dashboardTour", "leaveFeedback", "setupMcp", "setupChangeLog", "watchTogetherButton", "silentSends", "starboardWidget"];
|
|
2
2
|
export type FeatureName = (typeof FEATURE_NAMES)[number];
|
|
3
3
|
export type FeatureStatus = 'off' | 'beta' | 'public';
|
|
4
4
|
export type ResolvedFeature = 'public' | 'beta' | 'hidden';
|
package/dist/other/features.js
CHANGED
|
@@ -30,6 +30,7 @@ export declare const GuildClipForwardZod: {
|
|
|
30
30
|
content: z.ZodNullable<z.ZodString>;
|
|
31
31
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
32
32
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
33
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
33
34
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
34
35
|
title: z.ZodNullable<z.ZodString>;
|
|
35
36
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -111,6 +112,7 @@ export declare const GuildClipForwardZod: {
|
|
|
111
112
|
content: z.ZodNullable<z.ZodString>;
|
|
112
113
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
113
114
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
115
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
114
116
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
115
117
|
title: z.ZodNullable<z.ZodString>;
|
|
116
118
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -171,6 +173,7 @@ export declare const GuildClipForwardZod: {
|
|
|
171
173
|
content: z.ZodNullable<z.ZodString>;
|
|
172
174
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
173
175
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
176
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
174
177
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
175
178
|
title: z.ZodNullable<z.ZodString>;
|
|
176
179
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -29,6 +29,7 @@ export declare const ClubStreamerZod: {
|
|
|
29
29
|
content: z.ZodNullable<z.ZodString>;
|
|
30
30
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
31
31
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
32
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
32
33
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
33
34
|
title: z.ZodNullable<z.ZodString>;
|
|
34
35
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -93,6 +94,7 @@ export declare const ClubStreamerZod: {
|
|
|
93
94
|
content: z.ZodNullable<z.ZodString>;
|
|
94
95
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
95
96
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
97
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
96
98
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
97
99
|
title: z.ZodNullable<z.ZodString>;
|
|
98
100
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -280,6 +280,7 @@ export declare const GuildZod: {
|
|
|
280
280
|
content: z.ZodNullable<z.ZodString>;
|
|
281
281
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
282
282
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
283
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
283
284
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
284
285
|
title: z.ZodNullable<z.ZodString>;
|
|
285
286
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -349,6 +350,7 @@ export declare const GuildZod: {
|
|
|
349
350
|
content: z.ZodNullable<z.ZodString>;
|
|
350
351
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
351
352
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
353
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
352
354
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
353
355
|
title: z.ZodNullable<z.ZodString>;
|
|
354
356
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -545,6 +547,7 @@ export declare const GuildZod: {
|
|
|
545
547
|
content: z.ZodNullable<z.ZodString>;
|
|
546
548
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
547
549
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
550
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
548
551
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
549
552
|
title: z.ZodNullable<z.ZodString>;
|
|
550
553
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -614,6 +617,7 @@ export declare const GuildZod: {
|
|
|
614
617
|
content: z.ZodNullable<z.ZodString>;
|
|
615
618
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
616
619
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
620
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
617
621
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
618
622
|
title: z.ZodNullable<z.ZodString>;
|
|
619
623
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -32,6 +32,7 @@ export declare const InstagramStreamerZod: {
|
|
|
32
32
|
content: z.ZodNullable<z.ZodString>;
|
|
33
33
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
34
34
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
35
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
35
36
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
36
37
|
title: z.ZodNullable<z.ZodString>;
|
|
37
38
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -95,6 +96,7 @@ export declare const InstagramStreamerZod: {
|
|
|
95
96
|
content: z.ZodNullable<z.ZodString>;
|
|
96
97
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
97
98
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
99
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
98
100
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
99
101
|
title: z.ZodNullable<z.ZodString>;
|
|
100
102
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -34,6 +34,7 @@ export declare const KickStreamerZod: {
|
|
|
34
34
|
content: z.ZodNullable<z.ZodString>;
|
|
35
35
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
36
36
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
37
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
37
38
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
38
39
|
title: z.ZodNullable<z.ZodString>;
|
|
39
40
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -103,6 +104,7 @@ export declare const KickStreamerZod: {
|
|
|
103
104
|
notificationChannelId: z.ZodNullable<z.ZodString>;
|
|
104
105
|
auditLogsChannelId: z.ZodNullable<z.ZodString>;
|
|
105
106
|
auditLogsEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
107
|
+
auditLogsSilent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
106
108
|
showNotifyButton: z.ZodNullable<z.ZodBoolean>;
|
|
107
109
|
showWatchTogetherButton: z.ZodNullable<z.ZodBoolean>;
|
|
108
110
|
leaderBoardChannelId: z.ZodNullable<z.ZodString>;
|
|
@@ -177,6 +179,7 @@ export declare const KickStreamerZod: {
|
|
|
177
179
|
content: z.ZodNullable<z.ZodString>;
|
|
178
180
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
179
181
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
182
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
180
183
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
181
184
|
title: z.ZodNullable<z.ZodString>;
|
|
182
185
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -40,6 +40,7 @@ const KickStreamerSchema = zod_2.z.object({
|
|
|
40
40
|
notificationChannelId: zod_1.SnowFlake.nullable(),
|
|
41
41
|
auditLogsChannelId: zod_1.SnowFlake.nullable(),
|
|
42
42
|
auditLogsEnabled: zod_2.z.boolean().nullable(),
|
|
43
|
+
auditLogsSilent: zod_2.z.boolean().nullable().default(null),
|
|
43
44
|
showNotifyButton: zod_2.z.boolean().nullable(),
|
|
44
45
|
showWatchTogetherButton: zod_2.z.boolean().nullable(),
|
|
45
46
|
leaderBoardChannelId: zod_1.SnowFlake.nullable(),
|
|
@@ -27,6 +27,7 @@ export declare const GuildRolePanelZod: {
|
|
|
27
27
|
requireJoinAgeDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
28
|
requireMessageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
29
|
boosterOnly: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
|
+
silent: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodBoolean>>>;
|
|
30
31
|
embeds: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
31
32
|
order: z.ZodNumber;
|
|
32
33
|
title: z.ZodNullable<z.ZodString>;
|
|
@@ -81,6 +82,7 @@ export declare const GuildRolePanelZod: {
|
|
|
81
82
|
requireJoinAgeDays: z.ZodNullable<z.ZodNumber>;
|
|
82
83
|
requireMessageCount: z.ZodNullable<z.ZodNumber>;
|
|
83
84
|
boosterOnly: z.ZodNullable<z.ZodBoolean>;
|
|
85
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
84
86
|
embeds: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
85
87
|
order: z.ZodNumber;
|
|
86
88
|
title: z.ZodNullable<z.ZodString>;
|
|
@@ -24,6 +24,7 @@ const mainSchemaFields = {
|
|
|
24
24
|
requireJoinAgeDays: zod_2.z.number().min(0).nullable(),
|
|
25
25
|
requireMessageCount: zod_2.z.number().min(0).nullable(),
|
|
26
26
|
boosterOnly: zod_2.z.boolean().nullable(),
|
|
27
|
+
silent: zod_2.z.boolean().nullable().default(null),
|
|
27
28
|
embeds: zod_2.z.array(zod_2.z.lazy(() => GuildRolePanelEmbedSchema)).max(5),
|
|
28
29
|
rows: (0, zod_1.NoDuplicate)(zod_2.z.array(zod_2.z.lazy(() => GuildRolePanelRoleSchema)), ['roleId']),
|
|
29
30
|
};
|
|
@@ -30,6 +30,7 @@ export declare const RssFeedZod: {
|
|
|
30
30
|
content: z.ZodNullable<z.ZodString>;
|
|
31
31
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
32
32
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
33
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
33
34
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
34
35
|
title: z.ZodNullable<z.ZodString>;
|
|
35
36
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -99,6 +100,7 @@ export declare const RssFeedZod: {
|
|
|
99
100
|
content: z.ZodNullable<z.ZodString>;
|
|
100
101
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
101
102
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
103
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
102
104
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
103
105
|
title: z.ZodNullable<z.ZodString>;
|
|
104
106
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -39,6 +39,7 @@ export declare const RumbleStreamerZod: {
|
|
|
39
39
|
content: z.ZodNullable<z.ZodString>;
|
|
40
40
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
41
41
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
42
43
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
43
44
|
title: z.ZodNullable<z.ZodString>;
|
|
44
45
|
url: z.ZodNullable<z.ZodString>;
|
|
@@ -127,6 +128,7 @@ export declare const RumbleStreamerZod: {
|
|
|
127
128
|
content: z.ZodNullable<z.ZodString>;
|
|
128
129
|
showInviteButton: z.ZodNullable<z.ZodBoolean>;
|
|
129
130
|
showWatchButton: z.ZodNullable<z.ZodBoolean>;
|
|
131
|
+
silent: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
130
132
|
embed: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
131
133
|
title: z.ZodNullable<z.ZodString>;
|
|
132
134
|
url: z.ZodNullable<z.ZodString>;
|