Open beta
This commit is contained in:
@@ -7,10 +7,7 @@ use serenity::{
|
||||
prelude::Context,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
bot::commands::CommandOutput,
|
||||
utils::{consts::VERSION, embed::Status},
|
||||
};
|
||||
use crate::{bot::commands::CommandOutput, consts::VERSION, utils::embed::Status};
|
||||
|
||||
pub const NAME: &str = "version";
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ pub fn run(ctx: Context, command: ApplicationCommandInteraction) -> CommandOutpu
|
||||
EmbedBuilder::new()
|
||||
.title("Cannot join voice channel")
|
||||
.icon_url("https://spoticord.com/static/image/prohibited.png")
|
||||
.description("You need to link your Spotify account. Use </link:1036714850367320136> or go to https://account.spoticord.com/ to get started.")
|
||||
.description("You need to link your Spotify account. Use </link:1036714850367320136> or go to [the accounts website](https://account.spoticord.com/) to get started.")
|
||||
.status(Status::Error)
|
||||
.build(),
|
||||
true,
|
||||
@@ -141,7 +141,7 @@ pub fn run(ctx: Context, command: ApplicationCommandInteraction) -> CommandOutpu
|
||||
EmbedBuilder::new()
|
||||
.title("Cannot join voice channel")
|
||||
.icon_url("https://spoticord.com/static/image/prohibited.png")
|
||||
.description("You need to link your Spotify account. Use </link:1036714850367320136> or go to https://account.spoticord.com/ to get started.")
|
||||
.description("You need to link your Spotify account. Use </link:1036714850367320136> or go to [the accounts website](https://account.spoticord.com/) to get started.")
|
||||
.status(Status::Error)
|
||||
.build(),
|
||||
true,
|
||||
|
||||
@@ -103,11 +103,11 @@ pub fn run(ctx: Context, command: ApplicationCommandInteraction) -> CommandOutpu
|
||||
description.push_str(&format!("{} / {}", utils::time_to_str(position / 1000), utils::time_to_str(pbi.duration_ms / 1000)));
|
||||
|
||||
// Get owner of session
|
||||
let owner = match ctx.cache.user(owner) {
|
||||
let owner = match utils::discord::get_user(&ctx, owner).await {
|
||||
Some(user) => user,
|
||||
None => {
|
||||
// This shouldn't happen
|
||||
// TODO: This can happen, idk when
|
||||
// TODO: Test if this can no longer happen
|
||||
|
||||
error!("Could not find user with id {}", owner);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user