refactor: ok_or_else()
-> ok_or_eyre()
This commit is contained in:
parent
fafa0bf689
commit
f4fa737124
10 changed files with 23 additions and 29 deletions
|
@ -90,8 +90,8 @@ async fn main() -> Result<()> {
|
|||
color_eyre::install()?;
|
||||
env_logger::init();
|
||||
|
||||
let token = std::env::var("DISCORD_BOT_TOKEN")
|
||||
.wrap_err_with(|| "Couldn't find bot token in environment!")?;
|
||||
let token =
|
||||
std::env::var("DISCORD_BOT_TOKEN").wrap_err("Couldn't find bot token in environment!")?;
|
||||
|
||||
let intents =
|
||||
serenity::GatewayIntents::non_privileged() | serenity::GatewayIntents::MESSAGE_CONTENT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue