mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-19 04:38:17 +00:00
refactor(util): update endpoints (#383)
* Update constants.ts * fiiiixxxx * dupe * Update src/util/constants.ts Co-authored-by: Ayyan <ayyantee@gmail.com> * USER_DM * fix this and remove that * Update src/util/constants.ts Co-authored-by: Ayyan <ayyantee@gmail.com> * Update constants.ts * Update src/util/constants.ts Co-authored-by: Ayyan <ayyantee@gmail.com> * Update src/util/constants.ts Co-authored-by: Ayyan <ayyantee@gmail.com> * need these * hmm * rename GUILD_EMBED to GUILD_WIDGET * idk * Update src/util/constants.ts Co-authored-by: Ayyan <ayyantee@gmail.com> * Update constants.ts * Update constants.ts Co-authored-by: Ayyan <ayyantee@gmail.com>
This commit is contained in:
@@ -124,7 +124,7 @@ export async function sendDirectMessage(
|
||||
if (!dmChannel) {
|
||||
// If not available in cache create a new one.
|
||||
const dmChannelData = await RequestManager.post(
|
||||
endpoints.USER_CREATE_DM,
|
||||
endpoints.USER_DM,
|
||||
{ recipient_id: memberID },
|
||||
) as DMChannelCreatePayload;
|
||||
// Channel create event will have added this channel to the cache
|
||||
|
||||
Reference in New Issue
Block a user