Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocketからBOTのメッセージを送りたい #2514

Open
ras0q opened this issue Sep 19, 2024 · 1 comment
Open

WebSocketからBOTのメッセージを送りたい #2514

ras0q opened this issue Sep 19, 2024 · 1 comment
Labels
kind/enhancement 機能改善に関するもの

Comments

@ras0q
Copy link
Member

ras0q commented Sep 19, 2024

現状wsモードのBOTはMESSAGE_CREATEDなどのコマンドを受信しws経由でメッセージを受け取ることができる(/bots/ws)が、メッセージの送信には別途HTTPリクエストを送る必要がある(POST /channels/{channelId}/messages)。

send-message:{content}:{channelId}:{embed}のようなコマンドでメッセージが送信できると追加でトークンヘッダの設定などを行わずにwsコネクション内でメッセージを送れるのでbotの実装が楽になる。

メッセージの送信手段が2種類生えるのが少し気がかりくらい

@ras0q ras0q added the kind/enhancement 機能改善に関するもの label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement 機能改善に関するもの
Projects
None yet
Development

No branches or pull requests

2 participants
@ras0q and others