Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
kangalio committed Nov 19, 2022
1 parent e7121b6 commit 5399abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/serenity_example_port/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ async fn latency(ctx: Context<'_>) -> Result<(), Error> {
// over the shard, so we'll get the information about the shard runner for
// the shard this command was sent over.
let runner = runners
.get(&serenity::ShardId(ctx.shard_id))
.get(&serenity::ShardId(ctx.serenity_context().shard_id))
.ok_or("No shard found")?;

ctx.say(format!("The shard latency is {:?}", runner.latency))
Expand Down

0 comments on commit 5399abf

Please sign in to comment.