@@ -132,7 +132,7 @@ public interface IDiscordInteraction : ISnowflakeEntity
132132 /// A task that represents an asynchronous send operation for delivering the message.
133133 /// </returns>
134134 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 ) ;
136136
137137 /// <summary>
138138 /// Responds to this interaction with a file attachment.
@@ -154,7 +154,8 @@ Task RespondAsync(string text = null, Embed[] embeds = null, bool isTTS = false,
154154 /// </returns>
155155#if NETCOREAPP3_0_OR_GREATER
156156 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 )
158159 {
159160 using ( var file = new FileAttachment ( fileStream , fileName ) )
160161 {
@@ -163,7 +164,8 @@ async Task RespondWithFileAsync(Stream fileStream, string fileName, string text
163164 }
164165#else
165166 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 ) ;
167169#endif
168170 /// <summary>
169171 /// Responds to this interaction with a file attachment.
@@ -185,7 +187,8 @@ Task RespondWithFileAsync(Stream fileStream, string fileName, string text = null
185187 /// </returns>
186188#if NETCOREAPP3_0_OR_GREATER
187189 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 )
189192 {
190193 using ( var file = new FileAttachment ( filePath , fileName ) )
191194 {
@@ -194,7 +197,8 @@ async Task RespondWithFileAsync(string filePath, string fileName = null, string
194197 }
195198#else
196199 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 ) ;
198202#endif
199203 /// <summary>
200204 /// Responds to this interaction with a file attachment.
@@ -215,11 +219,13 @@ Task RespondWithFileAsync(string filePath, string fileName = null, string text =
215219 /// </returns>
216220#if NETCOREAPP3_0_OR_GREATER
217221 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 ) ;
220225#else
221226 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 ) ;
223229#endif
224230 /// <summary>
225231 /// Responds to this interaction with a collection of file attachments.
@@ -239,7 +245,9 @@ Task RespondWithFileAsync(FileAttachment attachment, string text = null, Embed[]
239245 /// contains the sent message.
240246 /// </returns>
241247 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+
243251 /// <summary>
244252 /// Sends a followup message for this interaction.
245253 /// </summary>
@@ -257,7 +265,9 @@ Task RespondWithFilesAsync(IEnumerable<FileAttachment> attachments, string text
257265 /// contains the sent message.
258266 /// </returns>
259267 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+
261271 /// <summary>
262272 /// Sends a followup message for this interaction.
263273 /// </summary>
@@ -278,17 +288,19 @@ Task<IUserMessage> FollowupAsync(string text = null, Embed[] embeds = null, bool
278288 /// </returns>
279289#if NETCOREAPP3_0_OR_GREATER
280290 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 )
282292 {
283293 using ( var file = new FileAttachment ( fileStream , fileName ) )
284294 {
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 ) ;
286296 }
287297 }
288298#else
289299 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 ) ;
291302#endif
303+
292304 /// <summary>
293305 /// Sends a followup message for this interaction.
294306 /// </summary>
@@ -309,16 +321,17 @@ Task<IUserMessage> FollowupWithFileAsync(Stream fileStream, string fileName, str
309321 /// </returns>
310322#if NETCOREAPP3_0_OR_GREATER
311323 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 )
313326 {
314327 using ( var file = new FileAttachment ( filePath , fileName ) )
315328 {
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 ) ;
317330 }
318331 }
319332#else
320333 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 ) ;
322335#endif
323336 /// <summary>
324337 /// Sends a followup message for this interaction.
@@ -339,11 +352,11 @@ Task<IUserMessage> FollowupWithFileAsync(string filePath, string fileName = null
339352 /// </returns>
340353#if NETCOREAPP3_0_OR_GREATER
341354 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 ) ;
344357#else
345358 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 ) ;
347360#endif
348361 /// <summary>
349362 /// Sends a followup message for this interaction.
@@ -363,7 +376,7 @@ Task<IUserMessage> FollowupWithFileAsync(FileAttachment attachment, string text
363376 /// contains the sent message.
364377 /// </returns>
365378 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 ) ;
367380 /// <summary>
368381 /// Gets the original response for this interaction.
369382 /// </summary>
0 commit comments