@@ -92,9 +92,17 @@ export class ChannelsAPI {
92
92
* @see {@link https://discord.com/developers/docs/resources/message#get-reactions }
93
93
* @param channelId - The id of the channel the message is in
94
94
* @param messageId - The id of the message to get the reactions for
95
- * @param emoji - The emoji to get the reactions for
95
+ * @param emoji - The emoji to get the reactions for. URL encoding happens internally
96
96
* @param query - The query options for fetching the reactions
97
97
* @param options - The options for fetching the message reactions
98
+ * @example
99
+ * ```ts
100
+ * // Unicode.
101
+ * await api.channels.getMessageReactions('1234567890', '1234567890', '👍');
102
+ *
103
+ * // Custom emoji.
104
+ * await api.channels.getMessageReactions('1234567890', '1234567890', 'emoji_name:1234567890');
105
+ * ```
98
106
*/
99
107
public async getMessageReactions (
100
108
channelId : Snowflake ,
@@ -115,8 +123,16 @@ export class ChannelsAPI {
115
123
* @see {@link https://discord.com/developers/docs/resources/message#delete-own-reaction }
116
124
* @param channelId - The id of the channel the message is in
117
125
* @param messageId - The id of the message to delete the reaction for
118
- * @param emoji - The emoji to delete the reaction for
126
+ * @param emoji - The emoji to delete the reaction for. URL encoding happens internally
119
127
* @param options - The options for deleting the reaction
128
+ * @example
129
+ * ```ts
130
+ * // Unicode.
131
+ * await api.channels.deleteOwnMessageReaction('1234567890', '1234567890', '👍');
132
+ *
133
+ * // Custom emoji.
134
+ * await api.channels.deleteOwnMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
135
+ * ```
120
136
*/
121
137
public async deleteOwnMessageReaction (
122
138
channelId : Snowflake ,
@@ -135,9 +151,17 @@ export class ChannelsAPI {
135
151
* @see {@link https://discord.com/developers/docs/resources/message#delete-user-reaction }
136
152
* @param channelId - The id of the channel the message is in
137
153
* @param messageId - The id of the message to delete the reaction for
138
- * @param emoji - The emoji to delete the reaction for
154
+ * @param emoji - The emoji to delete the reaction for. URL encoding happens internally
139
155
* @param userId - The id of the user to delete the reaction for
140
156
* @param options - The options for deleting the reaction
157
+ * @example
158
+ * ```ts
159
+ * // Unicode.
160
+ * await api.channels.deleteUserMessageReaction('1234567890', '1234567890', '👍', '1234567890');
161
+ *
162
+ * // Custom emoji.
163
+ * await api.channels.deleteUserMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890', '1234567890');
164
+ * ```
141
165
*/
142
166
public async deleteUserMessageReaction (
143
167
channelId : Snowflake ,
@@ -173,8 +197,16 @@ export class ChannelsAPI {
173
197
* @see {@link https://discord.com/developers/docs/resources/message#delete-all-reactions-for-emoji }
174
198
* @param channelId - The id of the channel the message is in
175
199
* @param messageId - The id of the message to delete the reactions for
176
- * @param emoji - The emoji to delete the reactions for
200
+ * @param emoji - The emoji to delete the reactions for. URL encoding happens internally
177
201
* @param options - The options for deleting the reactions
202
+ * @example
203
+ * ```ts
204
+ * // Unicode.
205
+ * await api.channels.deleteAllMessageReactionsForEmoji('1234567890', '1234567890', '👍');
206
+ *
207
+ * // Custom emoji.
208
+ * await api.channels.deleteAllMessageReactionsForEmoji('1234567890', '1234567890', 'emoji_name:1234567890');
209
+ * ```
178
210
*/
179
211
public async deleteAllMessageReactionsForEmoji (
180
212
channelId : Snowflake ,
@@ -191,8 +223,16 @@ export class ChannelsAPI {
191
223
* @see {@link https://discord.com/developers/docs/resources/message#create-reaction }
192
224
* @param channelId - The id of the channel the message is in
193
225
* @param messageId - The id of the message to add the reaction to
194
- * @param emoji - The emoji to add the reaction with
226
+ * @param emoji - The emoji to add the reaction with. URL encoding happens internally
195
227
* @param options - The options for adding the reaction
228
+ * @example
229
+ * ```ts
230
+ * // Unicode.
231
+ * await api.channels.addMessageReaction('1234567890', '1234567890', '👍');
232
+ *
233
+ * // Custom emoji.
234
+ * await api.channels.addMessageReaction('1234567890', '1234567890', 'emoji_name:1234567890');
235
+ * ```
196
236
*/
197
237
public async addMessageReaction (
198
238
channelId : Snowflake ,
0 commit comments