mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
fix slight bug in mentions
This commit is contained in:
@@ -171,7 +171,10 @@ export async function sendMessage(
|
||||
|
||||
const result = await RequestManager.post(
|
||||
endpoints.CHANNEL_MESSAGES(channel.id),
|
||||
content,
|
||||
{
|
||||
...content,
|
||||
allowed_mentions: content.mentions,
|
||||
},
|
||||
);
|
||||
|
||||
return createMessage(result as MessageCreateOptions);
|
||||
|
||||
@@ -96,7 +96,7 @@ export enum ChannelTypes {
|
||||
export interface MessageContent {
|
||||
mentions?: {
|
||||
/** An array of allowed mention types to parse from the content. */
|
||||
parse: ("roles" | "users" | "everyone")[];
|
||||
parse?: ("roles" | "users" | "everyone")[];
|
||||
/** Array of role_ids to mention (Max size of 100) */
|
||||
roles?: string[];
|
||||
/** Array of user_ids to mention (Max size of 100) */
|
||||
|
||||
Reference in New Issue
Block a user