The discord.js interactions PR has been merged, and d.js master (v13 dev) now has proper support for slash commands!
Official resources:
const { APIMessage, Structures } = require("discord.js"); | |
class ExtAPIMessage extends APIMessage { | |
resolveData() { | |
if (this.data) return this; | |
super.resolveData(); | |
const allowedMentions = this.options.allowedMentions || this.target.client.options.allowedMentions || {}; | |
if (allowedMentions.repliedUser !== undefined) { | |
if (this.data.allowed_mentions === undefined) this.data.allowed_mentions = {}; | |
Object.assign(this.data.allowed_mentions, { replied_user: allowedMentions.repliedUser }); |
The discord.js interactions PR has been merged, and d.js master (v13 dev) now has proper support for slash commands!
Official resources:
Application ID | Application name | Boost level | Max participants |
---|---|---|---|
755600276941176913 | YouTube Together(Old) | 0 | Unlimited |
880218394199220334 | Watch Together(New) | 0 | Unlimited |
755827207812677713 | Poker Night | 1 | 25 |
773336526917861400 | Betrayal.io | 0 | Unlimited |
814288819477020702 | Fishington.io | 0 | Unlimited |
832012774040141894 | Chess In The Park | 1 | Unlimited |
import redis from '@/lib/redis' | |
import { tap } from '@/lib/utils' | |
import { NextResponse } from 'next/server' | |
import { NowPlaying } from '@/types/activities' | |
import { base64_encode, use } from '@/lib/utils' | |
type SpotifyResponse = { | |
is_playing: boolean | |
progress_ms: number | |
item: { |