@@ -3511,6 +3511,10 @@ declare module discord {
3511
3511
* A special message that appears in a channel when it begins following an announcements channel.
3512
3512
*/
3513
3513
CHANNEL_FOLLOW_ADD = 12 ,
3514
+ /**
3515
+ * A default message that includes a reference to a message.
3516
+ */
3517
+ REPLY = 19 ,
3514
3518
}
3515
3519
3516
3520
/**
@@ -3727,6 +3731,16 @@ declare module discord {
3727
3731
* If set, will attempt to upload entries as file attachments to the message.
3728
3732
*/
3729
3733
attachments ?: Array < IOutgoingMessageAttachment > ;
3734
+ /**
3735
+ * When this is set, the message will attempt to become an inline reply of the provided message reference.
3736
+ *
3737
+ * The message or snowflake set here must reference a message inside the channel being sent to, otherwise an error will be thrown.
3738
+ *
3739
+ * You can configure wether the author of the message referenced here gets pinged by setting allowedMentions with repliedMessage set to false.
3740
+ *
3741
+ * Setting this on a [[discord.Message.inlineReply]] call overrides it. Conversely, setting it to `null` suppresses it.
3742
+ */
3743
+ reply ?: Message | Snowflake | Message . IMessageReference ;
3730
3744
}
3731
3745
3732
3746
/**
@@ -3762,6 +3776,12 @@ declare module discord {
3762
3776
* You may pass an array of user ids or user/guildMember objects to whitelist a set of users you'd like to restrict notifications to.
3763
3777
*/
3764
3778
users ?: true | Array < Snowflake | User | GuildMember > ;
3779
+ /**
3780
+ * If set to true, this message will be allowed to ping the author of the referenced message for inline replies.
3781
+ *
3782
+ * If this isn't set, this is inferred to be true.
3783
+ */
3784
+ reply ?: boolean ;
3765
3785
}
3766
3786
3767
3787
/**
@@ -3922,7 +3942,6 @@ declare module discord {
3922
3942
reply (
3923
3943
outgoingMessageOptions : Message . OutgoingMessageArgument < Message . OutgoingMessageOptions >
3924
3944
) : Promise < Message > ;
3925
-
3926
3945
/**
3927
3946
* Attempts to send a simple text message to the channel this message was sent in.
3928
3947
*
@@ -3933,7 +3952,6 @@ declare module discord {
3933
3952
* @param content Content to use for the outgoing message.
3934
3953
*/
3935
3954
reply ( content : Message . OutgoingMessageArgument < string > ) : Promise < Message > ;
3936
-
3937
3955
/**
3938
3956
* Attempts to send an [[discord.Embed]] to the channel this message was sent in.
3939
3957
*
@@ -3943,6 +3961,29 @@ declare module discord {
3943
3961
*/
3944
3962
reply ( embed : Message . OutgoingMessageArgument < Embed > ) : Promise < Message > ;
3945
3963
3964
+ /**
3965
+ * Does the same thing as .reply, but adds an inline reply referencing this message.
3966
+ *
3967
+ * If reply is set on the settings resolved by outgoingMessageOptions, then that will override the inline reply set by this function.
3968
+ *
3969
+ * @param outgoingMessageOptions Outgoing message options.
3970
+ */
3971
+ inlineReply (
3972
+ outgoingMessageOptions : Message . OutgoingMessageArgument < Message . OutgoingMessageOptions >
3973
+ ) : Promise < Message > ;
3974
+ /**
3975
+ * Does the same thing as .reply, but adds an inline reply referencing this message.
3976
+ *
3977
+ * @param content Content to use for the outgoing message.
3978
+ */
3979
+ inlineReply ( content : Message . OutgoingMessageArgument < string > ) : Promise < Message > ;
3980
+ /**
3981
+ * Does the same thing as .reply, but adds an inline reply referencing this message.
3982
+ *
3983
+ * @param embed The embed object you'd like to send to the channel.
3984
+ */
3985
+ inlineReply ( embed : Message . OutgoingMessageArgument < Embed > ) : Promise < Message > ;
3986
+
3946
3987
/**
3947
3988
* Attempts to permanently delete this message.
3948
3989
*
0 commit comments