既存の Discord のコードのまま GameVox 向けに開発できます。
既存の discord.js、discord.py、JDA、Eris のボットは、設定を 1 行変えるだけで GameVox 上で動きます。SDK の入れ替えも、プロトコルの調整も不要です。ゲートウェイと REST の向き先を変えて、そのまま公開してください。
discord.js
const client = new Client({
intents: [/* ... */],
rest: { api: 'https://bot-api.gamevox.com/api' },
ws: { gatewayURL: 'wss://gateway.gamevox.com' },
});
client.login(YOUR_BOT_TOKEN); discord.py
import discord
discord.http.Route.BASE = (
'https://bot-api.gamevox.com/api/v10'
)
discord.gateway.DiscordWebSocket.DEFAULT_GATEWAY = (
'wss://gateway.gamevox.com/?v=10&encoding=json'
)
intents = discord.Intents.default()
client = discord.Client(intents=intents)
client.run(YOUR_BOT_TOKEN) あなたのアプリケーション
読み込み中…