Skip to content

Commit

Permalink
Build against serenity v0.9 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Headline authored Nov 12, 2020
1 parent c9249ad commit 3c2e7a7
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 47 deletions.
93 changes: 49 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ chrono = "0.4.19"


[dependencies.serenity]
version = "0.9"
default-features = false
features = ["collector", "gateway", "builder", "standard_framework", "http", "model", "client", "framework", "utils", "rustls_backend"]
git = "https://github.com/Headline/serenity"
branch = "compiler"

[dependencies.wandbox]
version = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
.bucket("nospam", |b| b.delay(3).time_span(10).limit(3))
.await
.on_dispatch_error(events::dispatch_error);
let mut client = serenity::Client::new(token)
let mut client = serenity::Client::builder(token)
.framework(framework)
.event_handler(events::Handler)
.add_intent(GatewayIntents::GUILDS)
Expand Down

0 comments on commit 3c2e7a7

Please sign in to comment.