Skip to content

Commit

Permalink
Fix component usage
Browse files Browse the repository at this point in the history
  • Loading branch information
YodaLightsabr authored Mar 28, 2022
1 parent 397a25a commit f6adbb9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bot/commands/help.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Command from '@conflict/beta/commands';
import { Embed } from '@conflict/beta/components';

export default new Command({
name: 'help',
Expand All @@ -10,12 +11,10 @@ export default new Command({
execute: async (command, options, utils) => {
command.view(
<message>
<embeds>
<embed color="#ff3333" image={{ url: "https://www.gitbook.com/cdn-cgi/image/width=32,height=32,fit=contain,dpr=1,format=auto/https%3A%2F%2Ffiles.gitbook.com%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqKkjNKHtBhCUHveEGTY2%252Ficon%252F2sgixS2pVqtWMiBvRGg2%252FConflict.png%3Falt%3Dmedia%26token%3D24c0b0f6-f987-46ca-b4a5-8f193d650bcb" }}>
<title>Hello, world!</title>
<description>Welcome to **Conflict**.</description>
</embed>
</embeds>
<Embed color="#ff3333" image={{ url: "https://conflict.js.org/favicon.png" }}>
<title>Hello, world!</title>
<description>Welcome to **Conflict**.</description>
</Embed>
</message>
);
}
Expand Down

0 comments on commit f6adbb9

Please sign in to comment.