itoh is love itoh is bae this is his stuff

This commit is contained in:
Skillz
2021-02-22 12:01:32 -05:00
parent 15dc027b92
commit 6eca60777c
8 changed files with 61 additions and 27 deletions
+10 -6
View File
@@ -127,9 +127,9 @@ export async function getPins(channelID: string) {
return Promise.all(result.map((res) => structures.createMessage(res)));
}
/**
* Trigger a typing indicator for the specified channel. Generally bots should **NOT** implement this route.
* However, if a bot is responding to a command and expects the computation to take a few seconds,
/**
* Trigger a typing indicator for the specified channel. Generally bots should **NOT** implement this route.
* However, if a bot is responding to a command and expects the computation to take a few seconds,
* this endpoint may be called to let the user know that the bot is processing their message.
*/
export async function startTyping(channelID: string) {
@@ -240,9 +240,13 @@ export async function sendMessage(
replied_user: content.mentions.repliedUser,
}
: undefined,
message_reference: {
message_id: content.replyMessageID,
},
...(content.replyMessageID
? {
message_reference: {
message_id: content.replyMessageID,
},
}
: {}),
},
) as MessageCreateOptions;