Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Alterando umas coisas pra a conexão do violet não morrer
Browse files Browse the repository at this point in the history
  • Loading branch information
vulcandragi committed Jul 13, 2021
1 parent 690e5eb commit 415c6a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/apis/violet/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::config::KurosawaConfig;

use super::data_error::VioletError;

const BASE_URL: &str = "https://violet.zuraaa.com/api/apps/1/events";
const BASE_URL: &str = "https://violet.takasaki.dev/api/apps/1/events";

pub struct VioletCLient {
client: HttpClient,
Expand Down
3 changes: 1 addition & 2 deletions src/commands/custom_reaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,15 @@ async fn dcr(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {

let guild = msg.guild(ctx).await.unwrap();

let mut embed = CreateEmbed::default();
if remove_custom_reaction(guild, id).await? {
let mut embed = CreateEmbed::default();
embed.title("Reação customizada removida com sucesso 😊");
embed.color(colors::ORANGE);

msg.channel_id
.send_message(ctx, |x| x.set_embed(embed).reference_message(msg))
.await?;
} else {
let mut embed = CreateEmbed::default();
embed.title("Reação customizada não encontrada 😔");
embed.color(colors::YELLOW);

Expand Down
5 changes: 1 addition & 4 deletions src/utils/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,5 @@ pub async fn get_user_role_position(
}

pub async fn get_user_from_id(ctx: &Context, id: u64) -> KurosawaResult<User> {
match ctx.cache.user(id).await {
Some(user) => Ok(user),
None => Ok(ctx.http.get_user(id).await?),
}
Ok(ctx.http.get_user(id).await?)
}

0 comments on commit 415c6a3

Please sign in to comment.