diff --git a/apps/guide/public/assets/snek-bot.jpeg b/apps/guide/public/assets/snek-bot.jpeg new file mode 100644 index 000000000..59feb7835 Binary files /dev/null and b/apps/guide/public/assets/snek-bot.jpeg differ diff --git a/apps/guide/src/content/01-home/03-how-to-contribute.mdx b/apps/guide/src/content/01-home/03-how-to-contribute.mdx index 281a6e084..f732c7d04 100644 --- a/apps/guide/src/content/01-home/03-how-to-contribute.mdx +++ b/apps/guide/src/content/01-home/03-how-to-contribute.mdx @@ -136,6 +136,27 @@ Whenever some text does not need to be in the main body, you can put it here. > Interactions are supported! I definitely used a command. + + Display colors are supported as well! + ## Code blocks diff --git a/packages/ui/package.json b/packages/ui/package.json index 780050eab..99b3cce3d 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -46,6 +46,7 @@ }, "homepage": "https://discord.js.org", "dependencies": { + "@react-icons/all-files": "^4.1.0", "ariakit": "^2.0.0-next.44", "react": "^18.2.0", "react-dom": "^18.2.0" diff --git a/packages/ui/src/lib/components/discord/MessageAuthor.tsx b/packages/ui/src/lib/components/discord/MessageAuthor.tsx index 482340f21..22f743c45 100644 --- a/packages/ui/src/lib/components/discord/MessageAuthor.tsx +++ b/packages/ui/src/lib/components/discord/MessageAuthor.tsx @@ -1,11 +1,15 @@ +import { FiCheck } from '@react-icons/all-files/fi/FiCheck'; + export interface IDiscordMessageAuthor { avatar: string; bot?: boolean; + color?: string; time: string; username: string; + verified?: boolean; } -export function DiscordMessageAuthor({ avatar, username, bot, time }: IDiscordMessageAuthor) { +export function DiscordMessageAuthor({ avatar, bot, verified, color, time, username }: IDiscordMessageAuthor) { return ( <>

- {username} + + {username} + {bot ? ( - BOT + {verified ? : null}BOT ) : null} diff --git a/packages/ui/src/lib/components/discord/MessageAuthorReply.tsx b/packages/ui/src/lib/components/discord/MessageAuthorReply.tsx index 1b8de583d..0ac3564c8 100644 --- a/packages/ui/src/lib/components/discord/MessageAuthorReply.tsx +++ b/packages/ui/src/lib/components/discord/MessageAuthorReply.tsx @@ -1,19 +1,23 @@ +import { FiCheck } from '@react-icons/all-files/fi/FiCheck'; + export interface IDiscordMessageAuthorReply { avatar: string; bot?: boolean; + color?: string; username: string; + verified?: boolean; } -export function DiscordMessageAuthorReply({ avatar, bot, username }: IDiscordMessageAuthorReply) { +export function DiscordMessageAuthorReply({ avatar, bot, verified, color, username }: IDiscordMessageAuthorReply) { return ( <> {`${username}'s {bot ? (
- BOT + {verified ? : null}BOT
) : null} - + {username}