> For the complete documentation index, see [llms.txt](https://synclab.gitbook.io/sl-commands/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://synclab.gitbook.io/sl-commands/utilities/slcommands-embeds.md).

# SLCommands Embeds

Welcome to the custom embeds! I made them thinking about practicality & style. I hope you enjoy.&#x20;

You can access them just using:

{% tabs %}
{% tab title="JavaScript" %}

```javascript
const { SLEmbed } = require('sl-commands')
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
import { SLEmbed } from 'sl-commands'
```

{% endtab %}
{% endtabs %}

## SLEmbed Methods

These are some methods that you might like:

### setSuccess

```javascript
new SLEmbed().setSuccess(
  'This is a success embed!',
  'This is the footer of the embed'
)
```

![This is how it looks like after being sent.](https://3215828201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fde5DgdOT8QeqKjcEUJPi%2Fuploads%2FFht5nIRYcz93s1cqcUY8%2Fsuccess.png?alt=media\&token=5fe74eb3-f285-4d48-b456-f5d9a1d50cb1)

### setError

```javascript
new SLEmbed().setError(
  'This is an error embed!',
  'This is the footer of the embed'
)
```

![This is how it looks like after being sent.](https://3215828201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fde5DgdOT8QeqKjcEUJPi%2Fuploads%2FKFnZ4H0CHwaaR2kZFHJD%2Ferror.png?alt=media\&token=77f5cda7-9eb0-4c90-83d0-5cac0eacb951)

### setLoading

```javascript
new SLEmbed().setLoading(
  '<- This is a gif',
  'This is the footer of the embed'
)
```

![This is how it looks like after being sent.](https://3215828201-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fde5DgdOT8QeqKjcEUJPi%2Fuploads%2FBVIKf2NeJp6DZUyQeCSW%2Floading.png?alt=media\&token=d8d5891f-a374-4014-ac58-0d3813da940e)
