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: README.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Discord notification channel for Laravel 5.6
1
+
# Discord notification channel for Laravel 5.6+
2
2
3
3
[](https://packagist.org/packages/laravel-notification-channels/discord)
> **NOTE**: Discord handles direct messages as though they are a regular channel. If you wish to allow users to receive direct messages from your bot, you will need to create a private channel with that user.
81
83
> An example workflow may look like the following:
82
-
>
84
+
>
83
85
> 1. Your `users` table has two discord columns: `discord_user` and `discord_channel`
84
86
> 2. When a user updates their Discord user ID (`discord_user`), generate and save a channel ID (`discord_channel`)
85
87
> 3. Return the user's `discord_channel` in the `routeNotificationForDiscord` method on the User model
86
-
>
88
+
>
87
89
> You can generate direct message channels by using the `getPrivateChannel` method in `NotificationChannels\Discord\Discord`:
0 commit comments