diff --git a/src/commands/update.rs b/src/commands/update.rs index 52ccba07..d1b90f8f 100644 --- a/src/commands/update.rs +++ b/src/commands/update.rs @@ -35,7 +35,7 @@ pub async fn update(ctx: Context<'_>) -> Result<()> { ctx.say("Update started!").await?; // 更新開始通知 // 全キャラクター情報更新 - framedata::get_char_data(CHARS, "all").await; // フレームデータ更新 + framedata::get_char_data(&CHARS, "all").await; // フレームデータ更新 images::get_char_images(&CHARS, "all").await; // 画像データ更新 ctx.say("Update succesful!").await?; // 更新完了通知 @@ -66,7 +66,7 @@ pub async fn character( // 更新対象分岐処理 ctx.say("Update started!").await?; // 更新開始通知 - framedata::get_char_data(CHARS, &character_arg_altered).await; // フレームデータ更新 + framedata::get_char_data(&CHARS, &character_arg_altered).await; // フレームデータ更新 images::get_char_images(&CHARS, &character_arg_altered).await; // 画像データ更新 ctx.say("Update succesful!").await?; // 更新完了通知 diff --git a/src/commands/update/framedata.rs b/src/commands/update/framedata.rs index 71d077e4..2968f047 100644 --- a/src/commands/update/framedata.rs +++ b/src/commands/update/framedata.rs @@ -32,7 +32,7 @@ const SITE_HALF: &str = /// ```rust,no_run /// get_char_data(CHARS, "Sol_Badguy").await; /// ``` -pub async fn get_char_data(chars_ids: [&str; CHARS.len()], specific_char: &str) { +pub async fn get_char_data(chars_ids: &[&str; CHARS.len()], specific_char: &str) { // 更新時間計測開始 let now = Instant::now();