Mevcut Discord kodunla GameVox için geliştir.
Mevcut discord.js, discord.py, JDA veya Eris botun, tek bir yapılandırma satırını değiştirerek GameVox'ta çalışır. SDK değiştirmek yok. Protokolde ince ayar yok. Gateway'i ve REST'i bize yönlendir, yayına al.
discord.js
const client = new Client({
intents: [/* ... */],
rest: { api: 'https://app-api.gamevox.com/api' },
ws: { gatewayURL: 'wss://gateway.gamevox.com' },
});
client.login(YOUR_BOT_TOKEN); discord.py
import discord
discord.http.Route.BASE = (
'https://app-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) Uygulamaların
Yükleniyor…