@koishijs/plugin-adapter-discord 2.0.0-rc.0 → 2.0.2

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.
@@ -105,6 +105,51 @@ export interface Role {
105
105
  /** the tags this role has */
106
106
  tags?: RoleTags;
107
107
  }
108
+ export declare namespace Role {
109
+ namespace Params {
110
+ /** https://discord.com/developers/docs/resources/guild#create-guild-role-json-params */
111
+ interface Create {
112
+ /** name of the role */
113
+ name: string;
114
+ /** bitwise value of the enabled/disabled permissions */
115
+ permissions: string;
116
+ /** RGB color value */
117
+ color: integer;
118
+ /** whether the role should be displayed separately in the sidebar */
119
+ hoist: boolean;
120
+ /** the role's icon image (if the guild has the ROLE_ICONS feature) */
121
+ icon: string;
122
+ /** the role's unicode emoji as a standard emoji (if the guild has the ROLE_ICONS feature) */
123
+ unicode_emoji: string;
124
+ /** whether the role should be mentionable */
125
+ mentionable: boolean;
126
+ }
127
+ /** https://discord.com/developers/docs/resources/guild#modify-guild-role-positions-json-params */
128
+ interface ModifyPositions {
129
+ /** role */
130
+ id: snowflake;
131
+ /** sorting position of the role */
132
+ position?: integer;
133
+ }
134
+ /** https://discord.com/developers/docs/resources/guild#modify-guild-role-json-params */
135
+ interface Modify {
136
+ /** name of the role */
137
+ name: string;
138
+ /** bitwise value of the enabled/disabled permissions */
139
+ permissions: string;
140
+ /** RGB color value */
141
+ color: integer;
142
+ /** whether the role should be displayed separately in the sidebar */
143
+ hoist: boolean;
144
+ /** the role's icon image (if the guild has the ROLE_ICONS feature) */
145
+ icon: string;
146
+ /** the role's unicode emoji as a standard emoji (if the guild has the ROLE_ICONS feature) */
147
+ unicode_emoji: string;
148
+ /** whether the role should be mentionable */
149
+ mentionable: boolean;
150
+ }
151
+ }
152
+ }
108
153
  /** https://discord.com/developers/docs/topics/permissions#role-object-role-tags-structure */
109
154
  export interface RoleTags {
110
155
  /** the id of the bot this role belongs to */
@@ -145,3 +190,32 @@ declare module './gateway' {
145
190
  GUILD_ROLE_DELETE: GuildRoleDeleteEvent;
146
191
  }
147
192
  }
193
+ declare module './internal' {
194
+ interface Internal {
195
+ /**
196
+ * Returns a list of role objects for the guild.
197
+ * @see https://discord.com/developers/docs/resources/guild#get-guild-roles
198
+ */
199
+ getGuildRoles(guild_id: snowflake): Promise<Role[]>;
200
+ /**
201
+ * Create a new role for the guild. Requires the MANAGE_ROLES permission. Returns the new role object on success. Fires a Guild Role Create Gateway event. All JSON params are optional.
202
+ * @see https://discord.com/developers/docs/resources/guild#create-guild-role
203
+ */
204
+ createGuildRole(guild_id: snowflake, param: Role.Params.Create): Promise<Role>;
205
+ /**
206
+ * Modify the positions of a set of role objects for the guild. Requires the MANAGE_ROLES permission. Returns a list of all of the guild's role objects on success. Fires multiple Guild Role Update Gateway events.
207
+ * @see https://discord.com/developers/docs/resources/guild#modify-guild-role-positions
208
+ */
209
+ modifyGuildRolePositions(guild_id: snowflake, param: Role.Params.ModifyPositions): Promise<Role[]>;
210
+ /**
211
+ * Modify a guild role. Requires the MANAGE_ROLES permission. Returns the updated role on success. Fires a Guild Role Update Gateway event.
212
+ * @see https://discord.com/developers/docs/resources/guild#modify-guild-role
213
+ */
214
+ modifyGuildRole(guild_id: snowflake, role_id: snowflake, param: Role.Params.Modify): Promise<Role>;
215
+ /**
216
+ * Delete a guild role. Requires the MANAGE_ROLES permission. Returns a 204 empty response on success. Fires a Guild Role Delete Gateway event.
217
+ * @see https://discord.com/developers/docs/resources/guild#delete-guild-role
218
+ */
219
+ deleteGuildRole(guild_id: snowflake, role_id: snowflake): Promise<void>;
220
+ }
221
+ }
@@ -0,0 +1,167 @@
1
+ import { GuildMember, integer, snowflake, timestamp, User } from '.';
2
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-structure */
3
+ export interface GuildScheduledEvent {
4
+ /** the id of the scheduled event */
5
+ id: snowflake;
6
+ /** the guild id which the scheduled event belongs to */
7
+ guild_id: snowflake;
8
+ /** the channel id in which the scheduled event will be hosted, or null if scheduled entity type is EXTERNAL */
9
+ channel_id?: snowflake;
10
+ /** the id of the user that created the scheduled event * */
11
+ creator_id?: snowflake;
12
+ /** the name of the scheduled event (1-100 characters) */
13
+ name: string;
14
+ /** the description of the scheduled event (1-1000 characters) */
15
+ description?: string;
16
+ /** the time the scheduled event will start */
17
+ scheduled_start_time: timestamp;
18
+ /** the time the scheduled event will end, required if entity_type is EXTERNAL */
19
+ scheduled_end_time?: timestamp;
20
+ /** the privacy level of the scheduled event */
21
+ privacy_level: GuildScheduledEvent.PrivacyLevel;
22
+ /** the status of the scheduled event */
23
+ status: GuildScheduledEvent.Status;
24
+ /** the type of the scheduled event */
25
+ entity_type: GuildScheduledEvent.EntityType;
26
+ /** the id of an entity associated with a guild scheduled event */
27
+ entity_id?: snowflake;
28
+ /** additional metadata for the guild scheduled event */
29
+ entity_metadata?: GuildScheduledEvent.EntityMetadata;
30
+ /** the user that created the scheduled event */
31
+ creator?: User;
32
+ /** the number of users subscribed to the scheduled event */
33
+ user_count?: integer;
34
+ }
35
+ export declare namespace GuildScheduledEvent {
36
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-privacy-level */
37
+ enum PrivacyLevel {
38
+ /** the scheduled event is only accessible to guild members */
39
+ GUILD_ONLY = 2
40
+ }
41
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-entity-types */
42
+ enum EntityType {
43
+ STAGE_INSTANCE = 1,
44
+ VOICE = 2,
45
+ EXTERNAL = 3
46
+ }
47
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-status */
48
+ enum Status {
49
+ SCHEDULED = 1,
50
+ ACTIVE = 2,
51
+ COMPLETED = 3,
52
+ CANCELLED = 4
53
+ }
54
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-entity-metadata */
55
+ interface EntityMetadata {
56
+ /** location of the event (1-100 characters) */
57
+ location?: string;
58
+ }
59
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild-query-string-params */
60
+ interface ListParams {
61
+ /** include number of users subscribed to each event */
62
+ with_user_count?: boolean;
63
+ }
64
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#create-guild-scheduled-event-json-params */
65
+ interface CreateParams {
66
+ /** the channel id of the scheduled event. */
67
+ channel_id?: snowflake;
68
+ /** the entity metadata of the scheduled event */
69
+ entity_metadata?: EntityMetadata;
70
+ /** the name of the scheduled event */
71
+ name: string;
72
+ /** the privacy level of the scheduled event */
73
+ privacy_level: PrivacyLevel;
74
+ /** the time to schedule the scheduled event */
75
+ scheduled_start_time: timestamp;
76
+ /** the time when the scheduled event is scheduled to end */
77
+ scheduled_end_time?: timestamp;
78
+ /** the description of the scheduled event */
79
+ description?: string;
80
+ /** the entity type of the scheduled event */
81
+ entity_type: EntityType;
82
+ }
83
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event-query-string-params */
84
+ interface GetParams {
85
+ /** include number of users subscribed to this event */
86
+ with_user_count?: boolean;
87
+ }
88
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#modify-guild-scheduled-event-json-params */
89
+ interface ModifyParams {
90
+ /** the channel id of the scheduled event, set to null if changing entity type to EXTERNAL */
91
+ channel_id?: snowflake;
92
+ /** the entity metadata of the scheduled event */
93
+ entity_metadata?: EntityMetadata;
94
+ /** the name of the scheduled event */
95
+ name?: string;
96
+ /** the privacy level of the scheduled event */
97
+ privacy_level?: PrivacyLevel;
98
+ /** the time to schedule the scheduled event */
99
+ scheduled_start_time?: timestamp;
100
+ /** the time when the scheduled event is scheduled to end */
101
+ scheduled_end_time?: timestamp;
102
+ /** the description of the scheduled event */
103
+ description?: string;
104
+ /** the entity type of the scheduled event */
105
+ entity_type?: EntityType;
106
+ /** the status of the scheduled event */
107
+ status?: Status;
108
+ }
109
+ }
110
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-user-object-guild-scheduled-event-user-structure */
111
+ export interface GuildScheduledEventUser {
112
+ /** the scheduled event id which the user subscribed to */
113
+ guild_scheduled_event_id: snowflake;
114
+ /** user which subscribed to an event */
115
+ user: User;
116
+ /** guild member data for this user for the guild which this event belongs to, if any */
117
+ member?: GuildMember;
118
+ }
119
+ export declare namespace GuildScheduledEventUser {
120
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event-users-query-string-params */
121
+ interface GetParams {
122
+ /** number of users to return (up to maximum 100) */
123
+ limit?: number;
124
+ /** include guild member data if it exists */
125
+ with_member?: boolean;
126
+ /** consider only users before given user id */
127
+ before?: snowflake;
128
+ /** consider only users after given user id */
129
+ after?: snowflake;
130
+ }
131
+ }
132
+ declare module './internal' {
133
+ interface Internal {
134
+ /**
135
+ * Returns a list of guild scheduled event objects for the given guild.
136
+ * @see https://discord.com/developers/docs/resources/guild-scheduled-event#list-scheduled-events-for-guild
137
+ */
138
+ listScheduledEventsforGuild(guildId: snowflake, params?: GuildScheduledEvent.ListParams): Promise<GuildScheduledEvent[]>;
139
+ /**
140
+ * Create a guild scheduled event in the guild. Returns a guild scheduled event object on success.
141
+ * @see https://discord.com/developers/docs/resources/guild-scheduled-event#create-guild-scheduled-event
142
+ */
143
+ createGuildScheduledEvent(guildId: snowflake, params: GuildScheduledEvent.CreateParams): Promise<GuildScheduledEvent>;
144
+ /**
145
+ * Get a guild scheduled event. Returns a guild scheduled event object on success.
146
+ * @see https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event
147
+ */
148
+ getGuildScheduledEvent(guildId: snowflake, eventId: snowflake, params?: GuildScheduledEvent.GetParams): Promise<GuildScheduledEvent>;
149
+ /**
150
+ * Modify a guild scheduled event. Returns the modified guild scheduled event object on success.
151
+ * @see https://discord.com/developers/docs/resources/guild-scheduled-event#modify-guild-scheduled-event
152
+ */
153
+ modifyGuildScheduledEvent(guildId: snowflake, eventId: snowflake, params: GuildScheduledEvent.ModifyParams): Promise<GuildScheduledEvent>;
154
+ /**
155
+ * Delete a guild scheduled event. Returns a 204 on success.
156
+ * @see https://discord.com/developers/docs/resources/guild-scheduled-event#delete-guild-scheduled-event
157
+ */
158
+ deleteGuildScheduledEvent(guildId: snowflake, eventId: snowflake): Promise<void>;
159
+ /**
160
+ * Get a list of guild scheduled event users subscribed to a guild scheduled event.
161
+ * Returns a list of guild scheduled event user objects on success.
162
+ * Guild member data, if it exists, is included if the with_member query parameter is set.
163
+ * @see https://discord.com/developers/docs/resources/guild-scheduled-event#get-guild-scheduled-event-users
164
+ */
165
+ getGuildScheduledEventUsers(guildId: snowflake, eventId: snowflake, params?: GuildScheduledEventUser.GetParams): Promise<GuildScheduledEventUser[]>;
166
+ }
167
+ }
@@ -14,19 +14,65 @@ export interface StageInstance {
14
14
  /** Whether or not Stage Discovery is disabled */
15
15
  discoverable_disabled: boolean;
16
16
  }
17
- export interface StageInstanceCreateEvent extends StageInstance {
18
- }
19
- export interface StageInstanceDeleteEvent extends StageInstance {
20
- }
21
- export interface StageInstanceUpdateEvent extends StageInstance {
17
+ export declare namespace StageInstance {
18
+ namespace Event {
19
+ interface Create extends StageInstance {
20
+ }
21
+ interface Delete extends StageInstance {
22
+ }
23
+ interface Update extends StageInstance {
24
+ }
25
+ }
26
+ namespace Params {
27
+ /** https://discord.com/developers/docs/resources/stage-instance#create-stage-instance-json-params */
28
+ interface Create {
29
+ /** The id of the Stage channel */
30
+ channel_id: snowflake;
31
+ /** The topic of the Stage instance (1-120 characters) */
32
+ topic: string;
33
+ /** The privacy level of the Stage instance (default GUILD_ONLY) */
34
+ privacy_level?: integer;
35
+ }
36
+ /** https://discord.com/developers/docs/resources/stage-instance#modify-stage-instance-json-params */
37
+ interface Modify {
38
+ /** The topic of the Stage instance (1-120 characters) */
39
+ topic?: string;
40
+ /** The privacy level of the Stage instance */
41
+ privacy_level?: integer;
42
+ }
43
+ }
22
44
  }
23
45
  declare module './gateway' {
24
46
  interface GatewayEvents {
25
47
  /** stage instance was created */
26
- STAGE_INSTANCE_CREATE: StageInstanceCreateEvent;
48
+ STAGE_INSTANCE_CREATE: StageInstance.Event.Create;
27
49
  /** stage instance was deleted or closed */
28
- STAGE_INSTANCE_DELETE: StageInstanceDeleteEvent;
50
+ STAGE_INSTANCE_DELETE: StageInstance.Event.Delete;
29
51
  /** stage instance was updated */
30
- STAGE_INSTANCE_UPDATE: StageInstanceUpdateEvent;
52
+ STAGE_INSTANCE_UPDATE: StageInstance.Event.Update;
53
+ }
54
+ }
55
+ declare module './internal' {
56
+ interface Internal {
57
+ /**
58
+ * Creates a new Stage instance associated to a Stage channel.
59
+ * @see https://discord.com/developers/docs/resources/stage-instance#create-stage-instance
60
+ */
61
+ createStageInstance(params: StageInstance.Params.Create): Promise<StageInstance>;
62
+ /**
63
+ * Gets the stage instance associated with the Stage channel, if it exists.
64
+ * @see https://discord.com/developers/docs/resources/stage-instance#get-stage-instance
65
+ */
66
+ getStageInstance(channel_id: snowflake): Promise<StageInstance>;
67
+ /**
68
+ * Updates fields of an existing Stage instance.
69
+ * @see https://discord.com/developers/docs/resources/stage-instance#modify-stage-instance
70
+ */
71
+ modifyStageInstance(channel_id: snowflake, params: StageInstance.Params.Modify): Promise<StageInstance>;
72
+ /**
73
+ * Deletes the Stage instance.
74
+ * @see https://discord.com/developers/docs/resources/stage-instance#delete-stage-instance
75
+ */
76
+ deleteStageInstance(channel_id: snowflake): Promise<void>;
31
77
  }
32
78
  }
@@ -14,9 +14,9 @@ export interface Sticker {
14
14
  /** Deprecated previously the sticker asset hash, now an empty string */
15
15
  asset: string;
16
16
  /** type of sticker */
17
- type: integer;
17
+ type: Sticker.Type;
18
18
  /** type of sticker format */
19
- format_type: integer;
19
+ format_type: Sticker.FormatType;
20
20
  /** whether this guild sticker can be used, may be false due to loss of Server Boosts */
21
21
  available?: boolean;
22
22
  /** id of the guild that owns this sticker */
@@ -26,55 +26,124 @@ export interface Sticker {
26
26
  /** the standard sticker's sort order within its pack */
27
27
  sort_value?: integer;
28
28
  }
29
- /** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-types */
30
- export declare enum StickerType {
31
- /** an official sticker in a pack, part of Nitro or in a removed purchasable pack */
32
- STANDARD = 1,
33
- /** a sticker uploaded to a Boosted guild for the guild's members */
34
- GUILD = 2
35
- }
36
- /** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-format-types */
37
- export declare enum StickerFormatType {
38
- PNG = 1,
39
- APNG = 2,
40
- LOTTIE = 3
41
- }
42
- /** https://discord.com/developers/docs/resources/sticker#sticker-item-object-sticker-item-structure */
43
- export interface StickerItem {
44
- /** id of the sticker */
45
- id: snowflake;
46
- /** name of the sticker */
47
- name: string;
48
- /** type of sticker format */
49
- format_type: integer;
50
- }
51
- /** https://discord.com/developers/docs/resources/sticker#sticker-pack-object-sticker-pack-structure */
52
- export interface StickerPack {
53
- /** id of the sticker pack */
54
- id: snowflake;
55
- /** the stickers in the pack */
56
- stickers: Sticker[];
57
- /** name of the sticker pack */
58
- name: string;
59
- /** id of the pack's SKU */
60
- sku_id: snowflake;
61
- /** id of a sticker in the pack which is shown as the pack's icon */
62
- cover_sticker_id?: snowflake;
63
- /** description of the sticker pack */
64
- description: string;
65
- /** id of the sticker pack's banner image */
66
- banner_asset_id: snowflake;
67
- }
68
- /** https://discord.com/developers/docs/topics/gateway#guild-stickers-update-guild-stickers-update-event-fields */
69
- export interface GuildStickersUpdateEvent {
70
- /** id of the guild */
71
- guild_id: snowflake;
72
- /** array of stickers */
73
- stickers: Sticker[];
29
+ export declare namespace Sticker {
30
+ /** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-types */
31
+ enum Type {
32
+ /** an official sticker in a pack, part of Nitro or in a removed purchasable pack */
33
+ STANDARD = 1,
34
+ /** a sticker uploaded to a Boosted guild for the guild's members */
35
+ GUILD = 2
36
+ }
37
+ /** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-format-types */
38
+ enum FormatType {
39
+ PNG = 1,
40
+ APNG = 2,
41
+ LOTTIE = 3
42
+ }
43
+ /** https://discord.com/developers/docs/resources/sticker#sticker-item-object-sticker-item-structure */
44
+ interface Item {
45
+ /** id of the sticker */
46
+ id: snowflake;
47
+ /** name of the sticker */
48
+ name: string;
49
+ /** type of sticker format */
50
+ format_type: FormatType;
51
+ }
52
+ /** https://discord.com/developers/docs/resources/sticker#sticker-pack-object-sticker-pack-structure */
53
+ interface Pack {
54
+ /** id of the sticker pack */
55
+ id: snowflake;
56
+ /** the stickers in the pack */
57
+ stickers: Sticker[];
58
+ /** name of the sticker pack */
59
+ name: string;
60
+ /** id of the pack's SKU */
61
+ sku_id: snowflake;
62
+ /** id of a sticker in the pack which is shown as the pack's icon */
63
+ cover_sticker_id?: snowflake;
64
+ /** description of the sticker pack */
65
+ description: string;
66
+ /** id of the sticker pack's banner image */
67
+ banner_asset_id: snowflake;
68
+ }
69
+ namespace Event {
70
+ /** https://discord.com/developers/docs/topics/gateway#guild-stickers-update-guild-stickers-update-event-fields */
71
+ interface Update {
72
+ /** id of the guild */
73
+ guild_id: snowflake;
74
+ /** array of stickers */
75
+ stickers: Sticker[];
76
+ }
77
+ }
78
+ /** https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs-response-structure */
79
+ interface PackResult {
80
+ sticker_packs: Pack[];
81
+ }
82
+ namespace Params {
83
+ /** https://discord.com/developers/docs/resources/sticker#create-guild-sticker-form-params */
84
+ interface Create {
85
+ /** name of the sticker (2-30 characters) */
86
+ name: string;
87
+ /** description of the sticker (empty or 2-100 characters) */
88
+ description: string;
89
+ /** autocomplete/suggestion tags for the sticker (max 200 characters) */
90
+ tags: string;
91
+ /** the sticker file to upload, must be a PNG, APNG, or Lottie JSON file, max 500 KB */
92
+ file: any;
93
+ }
94
+ /** https://discord.com/developers/docs/resources/sticker#modify-guild-sticker-json-params */
95
+ interface Modify {
96
+ /** name of the sticker (2-30 characters) */
97
+ name: string;
98
+ /** description of the sticker (2-100 characters) */
99
+ description?: string;
100
+ /** autocomplete/suggestion tags for the sticker (max 200 characters) */
101
+ tags: string;
102
+ }
103
+ }
74
104
  }
75
105
  declare module './gateway' {
76
106
  interface GatewayEvents {
77
107
  /** guild stickers were updated */
78
- GUILD_STICKERS_UPDATE: GuildStickersUpdateEvent;
108
+ GUILD_STICKERS_UPDATE: Sticker.Event.Update;
109
+ }
110
+ }
111
+ declare module './internal' {
112
+ interface Internal {
113
+ /**
114
+ * Returns a sticker object for the given sticker ID.
115
+ * @see https://discord.com/developers/docs/resources/sticker#get-sticker
116
+ */
117
+ getSticker(sticker_id: snowflake): Promise<Sticker>;
118
+ /**
119
+ * Returns the list of sticker packs available to Nitro subscribers.
120
+ * @see https://discord.com/developers/docs/resources/sticker#list-nitro-sticker-packs
121
+ */
122
+ listNitroStickerPacks(): Promise<Sticker.PackResult>;
123
+ /**
124
+ * Returns an array of sticker objects for the given guild. Includes user fields if the bot has the MANAGE_EMOJIS_AND_STICKERS permission.
125
+ * @see https://discord.com/developers/docs/resources/sticker#list-guild-stickers
126
+ */
127
+ listGuildStickers(guild_id: snowflake): Promise<Sticker[]>;
128
+ /**
129
+ * Returns a sticker object for the given guild and sticker IDs. Includes the user field if the bot has the MANAGE_EMOJIS_AND_STICKERS permission.
130
+ * @see https://discord.com/developers/docs/resources/sticker#get-guild-sticker
131
+ */
132
+ getGuildSticker(guild_id: snowflake, sticker_id: snowflake): Promise<Sticker>;
133
+ /**
134
+ * Create a new sticker for the guild. Send a multipart/form-data body. Requires the MANAGE_EMOJIS_AND_STICKERS permission. Returns the new sticker object on success.
135
+ * @see https://discord.com/developers/docs/resources/sticker#create-guild-sticker
136
+ */
137
+ createGuildSticker(guild_id: snowflake, params: Sticker.Params.Create): Promise<Sticker>;
138
+ /**
139
+ * Modify the given sticker. Requires the MANAGE_EMOJIS_AND_STICKERS permission. Returns the updated sticker object on success.
140
+ * @see https://discord.com/developers/docs/resources/sticker#modify-guild-sticker
141
+ */
142
+ modifyGuildSticker(guild_id: snowflake, sticker_id: snowflake, params: Sticker.Params.Modify): Promise<Sticker>;
143
+ /**
144
+ * Delete the given sticker. Requires the MANAGE_EMOJIS_AND_STICKERS permission. Returns 204 No Content on success.
145
+ * @see https://discord.com/developers/docs/resources/sticker#delete-guild-sticker
146
+ */
147
+ deleteGuildSticker(guild_id: snowflake, sticker_id: snowflake): Promise<void>;
79
148
  }
80
149
  }