You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/api/hmr.mdx
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ order: 11
11
11
Within the Mineral ecosystem, HMR (Hot Module Reloading) is a feature that automatically reloads your business code
12
12
without having to restart your project or recreate a connection to Discord's Websocket API.
13
13
14
-
> [!warning]
15
-
> This feature is experimental and may not work as expected.
14
+
> [!important]
15
+
> The integration of HMR uses an agnostic package named [`hmr`](https://pub.dev/packages/hmr).
16
16
17
17
---
18
18
@@ -22,8 +22,7 @@ This feature is particularly useful when you are developing your application and
22
22
23
23
It is important to note that the HMR only reloads the contents of your root project's (based on the following glob pattern `**.dart`) without any external dependencies.
24
24
25
-
> [!important]
26
-
> The integration of HMR has been moved to a dedicated, agnostic package [`hmr`](https://pub.dev/packages/hmr).
Copy file name to clipboardExpand all lines: src/content/docs/guide/environment-variables.mdx
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,9 @@ title: Environment variables
3
3
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
4
4
permalink: environment-variables
5
5
icon: lucide:key-round
6
-
order: 3
6
+
order: 4
7
7
---
8
+
8
9
# Environment variables
9
10
10
11
Environment variables serve the purpose of storing secrets like the database password, the app secret, or an API key outside of your application codebase.
@@ -19,6 +20,7 @@ In addition, environment variables can be used to obtain different configuration
19
20
We're providing an `Environment` class to access the various environment variables in your application.
Copy file name to clipboardExpand all lines: src/content/docs/guide/event.mdx
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,9 @@ title: Events
3
3
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
4
4
permalink: events
5
5
icon: lucide:bell
6
-
order: 4
6
+
order: 5
7
7
---
8
+
8
9
# Events
9
10
10
11
The Discord API uses a real-time event system transmitted via a WebSocket connection to allow client applications to receive instant updates from the server.
@@ -31,9 +32,11 @@ Let's take a simple example of a bot that listens to the `MessageCreate` event a
31
32
From the `Client`, we can chain event listeners using the following pattern :
0 commit comments