more fixes

This commit is contained in:
Zachary Vacura 2016-09-17 11:50:14 -05:00
parent 6b6bdd41d9
commit 31af234f25
2 changed files with 3 additions and 3 deletions

View file

@ -311,11 +311,11 @@ class Client {
}
}
/// Gets an [OAuth2Info] object. Only usable by user accounts.
/// Invites a bot to a guild. Only usable by user accounts.
///
/// Throws an [Exception] if the HTTP request errored or if the client user
/// is a bot.
/// Client.getOAuth2Info("app id");
/// Client.oauth2Authorize("app id", "guild id");
Future<bool> oauth2Authorize(String app, String guild, [int permissions = 0]) async {
if (!this.user.bot) {
var r = await this._api.post('oauth2/authorize?client_id=$app&scope=bot', {"guild_id": guild, "permissions": permissions, "authorize": true});

View file

@ -1,5 +1,5 @@
name: discord_dart
version: 0.4.1
version: 0.4.2
description: A Discord library for Dart
author: Hackzzila <admin@hackzzila.com>
homepage: https://github.com/Hackzzila/Discord-Dart