Browse Source
Fix error in message sending.
Was throwing an AttributeError as `bot` doesn't have a `state` attribute.
pull/89/head
Alkali-Metal
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docs/bot_tutorial/message_embeds.md
|
@ -49,7 +49,7 @@ embed.color = '10038562' #This can be any color, but I chose a nice dark red tin |
|
|
Once your embed is finshed, you can send it using the `channel.send_message()` message or the `event.msg.reply()` function. |
|
|
Once your embed is finshed, you can send it using the `channel.send_message()` message or the `event.msg.reply()` function. |
|
|
With `channel.send_message()`: |
|
|
With `channel.send_message()`: |
|
|
```py |
|
|
```py |
|
|
self.bot.state.channels.get(<ChannelID>).send_message('[optional text]', embed=embed) |
|
|
self.state.channels.get(<ChannelID>).send_message('[optional text]', embed=embed) |
|
|
``` |
|
|
``` |
|
|
with the `event.msg.reply()` function: |
|
|
with the `event.msg.reply()` function: |
|
|
```py |
|
|
```py |
|
|