Struct noob::Client [−][src]
pub struct Client { /* fields omitted */ }
Object used to interact with the Discord API
Methods
impl Client
[src]
impl Client
pub fn connect(
token: &str
) -> impl Future<Item = (Client, GatewayConnection), Error = Error> + Send
[src]
pub fn connect(
token: &str
) -> impl Future<Item = (Client, GatewayConnection), Error = Error> + Send
Connect to the Discord gateway with a bot token
pub fn send_message(
&self,
message: &MessageBuilder,
channel: &str
) -> impl Future<Item = (), Error = Error> + Send
[src]
pub fn send_message(
&self,
message: &MessageBuilder,
channel: &str
) -> impl Future<Item = (), Error = Error> + Send
Send a message on a channel