feat: updated more dependencies
This commit is contained in:
parent
6b84f33d2e
commit
86f71f0fa4
3 changed files with 533 additions and 176 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue