Method: Discordrb::Bot#stop
- Defined in:
- lib/discordrb/bot.rb
#stop(_no_sync = nil) ⇒ Object
Note:
This method no longer takes an argument as of 3.4.0
Stops the bot gracefully, disconnecting the websocket without immediately killing the thread. This means that Discord is immediately aware of the closed connection and makes the bot appear offline instantly.
282 283 284 |
# File 'lib/discordrb/bot.rb', line 282 def stop(_no_sync = nil) @gateway.stop end |