@@ -132,7 +132,7 @@ public interface IDiscordInteraction : ISnowflakeEntity
132
132
/// A task that represents an asynchronous send operation for delivering the message.
133
133
/// </returns>
134
134
Task RespondAsync ( string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false , AllowedMentions allowedMentions = null ,
135
- MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ) ;
135
+ MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null , MessageFlags flags = MessageFlags . None ) ;
136
136
137
137
/// <summary>
138
138
/// Responds to this interaction with a file attachment.
@@ -154,7 +154,8 @@ Task RespondAsync(string text = null, Embed[] embeds = null, bool isTTS = false,
154
154
/// </returns>
155
155
#if NETCOREAPP3_0_OR_GREATER
156
156
async Task RespondWithFileAsync ( Stream fileStream , string fileName , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
157
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null )
157
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ,
158
+ MessageFlags flags = MessageFlags . None )
158
159
{
159
160
using ( var file = new FileAttachment ( fileStream , fileName ) )
160
161
{
@@ -163,7 +164,8 @@ async Task RespondWithFileAsync(Stream fileStream, string fileName, string text
163
164
}
164
165
#else
165
166
Task RespondWithFileAsync ( Stream fileStream , string fileName , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
166
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ) ;
167
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null
168
+ , MessageFlags flags = MessageFlags . None ) ;
167
169
#endif
168
170
/// <summary>
169
171
/// Responds to this interaction with a file attachment.
@@ -185,7 +187,8 @@ Task RespondWithFileAsync(Stream fileStream, string fileName, string text = null
185
187
/// </returns>
186
188
#if NETCOREAPP3_0_OR_GREATER
187
189
async Task RespondWithFileAsync ( string filePath , string fileName = null , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
188
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null )
190
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ,
191
+ MessageFlags flags = MessageFlags . None )
189
192
{
190
193
using ( var file = new FileAttachment ( filePath , fileName ) )
191
194
{
@@ -194,7 +197,8 @@ async Task RespondWithFileAsync(string filePath, string fileName = null, string
194
197
}
195
198
#else
196
199
Task RespondWithFileAsync ( string filePath , string fileName = null , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
197
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ) ;
200
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ,
201
+ MessageFlags flags = MessageFlags . None ) ;
198
202
#endif
199
203
/// <summary>
200
204
/// Responds to this interaction with a file attachment.
@@ -215,11 +219,13 @@ Task RespondWithFileAsync(string filePath, string fileName = null, string text =
215
219
/// </returns>
216
220
#if NETCOREAPP3_0_OR_GREATER
217
221
Task RespondWithFileAsync ( FileAttachment attachment , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
218
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null )
219
- => RespondWithFilesAsync ( new FileAttachment [ ] { attachment } , text , embeds , isTTS , ephemeral , allowedMentions , components , embed , options , poll ) ;
222
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ,
223
+ MessageFlags flags = MessageFlags . None )
224
+ => RespondWithFilesAsync ( [ attachment ] , text , embeds , isTTS , ephemeral , allowedMentions , components , embed , options , poll , flags ) ;
220
225
#else
221
226
Task RespondWithFileAsync ( FileAttachment attachment , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
222
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ) ;
227
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ,
228
+ MessageFlags flags = MessageFlags . None ) ;
223
229
#endif
224
230
/// <summary>
225
231
/// Responds to this interaction with a collection of file attachments.
@@ -239,7 +245,9 @@ Task RespondWithFileAsync(FileAttachment attachment, string text = null, Embed[]
239
245
/// contains the sent message.
240
246
/// </returns>
241
247
Task RespondWithFilesAsync ( IEnumerable < FileAttachment > attachments , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
242
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ) ;
248
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ,
249
+ MessageFlags flags = MessageFlags . None ) ;
250
+
243
251
/// <summary>
244
252
/// Sends a followup message for this interaction.
245
253
/// </summary>
@@ -257,7 +265,9 @@ Task RespondWithFilesAsync(IEnumerable<FileAttachment> attachments, string text
257
265
/// contains the sent message.
258
266
/// </returns>
259
267
Task < IUserMessage > FollowupAsync ( string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
260
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ) ;
268
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ,
269
+ MessageFlags flags = MessageFlags . None ) ;
270
+
261
271
/// <summary>
262
272
/// Sends a followup message for this interaction.
263
273
/// </summary>
@@ -278,17 +288,19 @@ Task<IUserMessage> FollowupAsync(string text = null, Embed[] embeds = null, bool
278
288
/// </returns>
279
289
#if NETCOREAPP3_0_OR_GREATER
280
290
async Task < IUserMessage > FollowupWithFileAsync ( Stream fileStream , string fileName , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
281
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null )
291
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null , MessageFlags flags = MessageFlags . None )
282
292
{
283
293
using ( var file = new FileAttachment ( fileStream , fileName ) )
284
294
{
285
- return await FollowupWithFileAsync ( file , text , embeds , isTTS , ephemeral , allowedMentions , components , embed , options , poll ) . ConfigureAwait ( false ) ;
295
+ return await FollowupWithFileAsync ( file , text , embeds , isTTS , ephemeral , allowedMentions , components , embed , options , poll , flags ) . ConfigureAwait ( false ) ;
286
296
}
287
297
}
288
298
#else
289
299
Task < IUserMessage > FollowupWithFileAsync ( Stream fileStream , string fileName , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
290
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ) ;
300
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ,
301
+ MessageFlags flags = MessageFlags . None ) ;
291
302
#endif
303
+
292
304
/// <summary>
293
305
/// Sends a followup message for this interaction.
294
306
/// </summary>
@@ -309,16 +321,17 @@ Task<IUserMessage> FollowupWithFileAsync(Stream fileStream, string fileName, str
309
321
/// </returns>
310
322
#if NETCOREAPP3_0_OR_GREATER
311
323
async Task < IUserMessage > FollowupWithFileAsync ( string filePath , string fileName = null , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
312
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null )
324
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ,
325
+ MessageFlags flags = MessageFlags . None )
313
326
{
314
327
using ( var file = new FileAttachment ( filePath , fileName ) )
315
328
{
316
- return await FollowupWithFileAsync ( file , text , embeds , isTTS , ephemeral , allowedMentions , components , embed , options , poll ) . ConfigureAwait ( false ) ;
329
+ return await FollowupWithFileAsync ( file , text , embeds , isTTS , ephemeral , allowedMentions , components , embed , options , poll , flags ) . ConfigureAwait ( false ) ;
317
330
}
318
331
}
319
332
#else
320
333
Task < IUserMessage > FollowupWithFileAsync ( string filePath , string fileName = null , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
321
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ) ;
334
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null , MessageFlags flags = MessageFlags . None ) ;
322
335
#endif
323
336
/// <summary>
324
337
/// Sends a followup message for this interaction.
@@ -339,11 +352,11 @@ Task<IUserMessage> FollowupWithFileAsync(string filePath, string fileName = null
339
352
/// </returns>
340
353
#if NETCOREAPP3_0_OR_GREATER
341
354
Task < IUserMessage > FollowupWithFileAsync ( FileAttachment attachment , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
342
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null )
343
- => FollowupWithFilesAsync ( new FileAttachment [ ] { attachment } , text , embeds , isTTS , ephemeral , allowedMentions , components , embed , options , poll ) ;
355
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null , MessageFlags flags = MessageFlags . None )
356
+ => FollowupWithFilesAsync ( new FileAttachment [ ] { attachment } , text , embeds , isTTS , ephemeral , allowedMentions , components , embed , options , poll , flags ) ;
344
357
#else
345
358
Task < IUserMessage > FollowupWithFileAsync ( FileAttachment attachment , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
346
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ) ;
359
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null , MessageFlags flags = MessageFlags . None ) ;
347
360
#endif
348
361
/// <summary>
349
362
/// Sends a followup message for this interaction.
@@ -363,7 +376,7 @@ Task<IUserMessage> FollowupWithFileAsync(FileAttachment attachment, string text
363
376
/// contains the sent message.
364
377
/// </returns>
365
378
Task < IUserMessage > FollowupWithFilesAsync ( IEnumerable < FileAttachment > attachments , string text = null , Embed [ ] embeds = null , bool isTTS = false , bool ephemeral = false ,
366
- AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null ) ;
379
+ AllowedMentions allowedMentions = null , MessageComponent components = null , Embed embed = null , RequestOptions options = null , PollProperties poll = null , MessageFlags flags = MessageFlags . None ) ;
367
380
/// <summary>
368
381
/// Gets the original response for this interaction.
369
382
/// </summary>
0 commit comments