feat: updated more dependencies

This commit is contained in:
silver 2025-02-19 00:26:54 +00:00
parent 6b84f33d2e
commit 86f71f0fa4
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
3 changed files with 533 additions and 176 deletions

View file

@ -2,7 +2,7 @@ pub mod common;
use chrono::{Datelike, SecondsFormat, Utc};
use dotenvy::dotenv;
use rand::{distributions::Alphanumeric, thread_rng, Rng};
use rand::{distr::Alphanumeric, rng, Rng};
use serenity::all::CommandInteraction;
use serenity::client::Context;
use serenity::model::id::{ChannelId, GuildId, RoleId};
@ -125,7 +125,7 @@ pub fn get_now_iso(short: bool) -> String {
}
pub fn random_string(len: usize) -> String {
thread_rng().sample_iter(&Alphanumeric).take(len).map(char::from).collect()
rng().sample_iter(&Alphanumeric).take(len).map(char::from).collect()
}
/**