Discord連携機能の安定化および不要な古い参照のクリーンアップ#479
Merged
Merged
Conversation
…loss with 3+ participants
- Discord.Net および Discord.Net.Dave を 3.20.1 にアップデート - EnableVoiceDaveEncryption = true に設定し、他ユーザー入室時のDAVE(E2EE)クラッシュを対策 - Hojoring本体側 (ACT.Hojoring, ACT.TTSYukkuri) から不要な古い Discord.Net (3.18.0-nightly) の PackageReference を削除 - UI側 (DiscordViewModel) での操作ボタン連続クリックによるコントロール無効化時間を3秒に延長 - ヘルパー側 (DiscordBotService) で接続・ボイス操作のセマフォによる排他制御と3秒のクールダウンを実装、レートリミット検知時の日本語警告を追加 - make.ps1 の文字コードを UTF-8 (BOM付き) に変換し、PowerShell実行時のパースエラーを修正
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Discord連携(Discord BOT)機能における不具合修正と、依存関係の整理を行いました。
変更内容
他ユーザー入室時の強制切断・クラッシュ対策(DAVE暗号化対応)
DiscordBotService.csにてEnableVoiceDaveEncryption = trueに設定しました。libdaveの初期化不全によって C# 側でNullReferenceExceptionが発生し、DiscordHelper プロセスが強制切断・クラッシュする不具合を解消しました。Discord.Net パッケージの 3.20.1 へのアップデート
ACT.Hojoring.DiscordHelper) のDiscord.NetおよびDiscord.Net.Daveの依存パッケージを3.20.1へアップグレードしました。Unexpected user IDやbad_optional_access)が生じた場合でも、プロセスがクラッシュせずにセッションを自動的に再確立(自己修復)して音声を再生し続けられるようにしました。Hojoring本体側からの古い Discord.Net 参照のクリーンアップ
DiscordHelperに移行しており、本体側から直接 Discord.Net に依存する処理はないため、ACT.Hojoring.csprojおよびACT.TTSYukkuri.csprojから不要なDiscord.Net (3.18.0-nightly.2025.0921.631)へのパッケージ参照を削除しました。レートリミット連打対策の強化
100msから3秒に延長し、物理的な連打を防ぐようにしました。make.ps1の文字コード修正make.ps1を UTF-8 (BOM付き) に変換してビルドスクリプトが正常に実行できるよう修正しました。本件について、ボイスチャンネルへの複数人入室時および音声発声時において、切断されずに正常動作することを確認済みです。