Skip to content

Instantly share code, notes, and snippets.

View ThatLadLegend's full-sized avatar
:electron:
I may be slow to respond.

Legend ThatLadLegend

:electron:
I may be slow to respond.
  • 16:25 (UTC +01:00)
View GitHub Profile
@Captain8771
Captain8771 / slashcommand.md
Last active August 22, 2022 17:49
Powercord snippet for adding and removing built in slash commands

Snippet

let { getModule, messages: { receiveMessage } } = require("powercord/webpack")
let { createBotMessage } = getModule(["createBotMessage"], false)


function CreateCommand(name, description, options, callback, applicationId="-1") {
    getModule(["getBuiltInCommands"], false).BUILT_IN_COMMANDS.push({
        applicationId: applicationId,