Compare commits

...

4 Commits

4 changed files with 5 additions and 5 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "discord-api-types",
"version": "0.11.0",
"version": "0.11.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "discord-api-types",
"version": "0.11.0",
"version": "0.11.2",
"description": "Discord API typings that are kept up to date for use in bot library creation.",
"main": "default/index.js",
"scripts": {

View File

@@ -31,7 +31,7 @@ export interface APIAuditLog {
export interface APIAuditLogEntry {
target_id: string | null;
changes?: APIAuditLogChange[];
user_id: string | null;
user_id: string;
id: string;
action_type: AuditLogEvent;
options?: APIAuditLogOptions;

View File

@@ -52,7 +52,7 @@ export interface RESTPostAPIGuildsJSONBody {
afk_channel_id?: number | string;
afk_timeout?: number;
system_channel_id?: number | string;
system_channel_flags: GuildSystemChannelFlags;
system_channel_flags?: GuildSystemChannelFlags;
}
export type RESTPostAPIGuildsResult = APIGuild;
@@ -88,7 +88,7 @@ export interface RESTPatchAPIGuildJSONBody {
discovery_splash?: string | null;
banner?: string | null;
system_channel_id?: string | null;
system_channel_flags: GuildSystemChannelFlags;
system_channel_flags?: GuildSystemChannelFlags;
rules_channel_id?: string | null;
public_updates_channel_id?: string | null;
preferred_locale?: string | null;