Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
discord-slash-commands-ru
Advanced tools
Модуль с русским переводом для Дискорд ботов, чтобы легко создать слеш-команды и управлять ими.
Readme
Модуль с русским переводом для Дискорд ботов, чтобы легко создать слеш-команды и управлять ими.
const { SlashClient } = require("discord-slash-commands-ru");
// Для TypeScript: import { SlashClient } from "discord-slash-commands-ru";
const interaction = new SlashClient("Токен вашего бота", "ID вашего бота");
interaction.getSlashCommands({}).then(console.log); // Показывает все созданные слеш-команды
// Чтобы получить конкретную глобальную команду - interaction.getSlashCommands({ commandID: Айди команды })
// Чтобы получить конкретную команду только для указанного сервера - interaction.getSlashCommands({ commandID: "Айди команды", guildID: "Айди сервера" })
// Создание новой глобальной слеш-команды
interaction
.createSlashCommand({ name: "Название команды", description: "Описание команды" })
.then(console.log)
// Если хотите создать только для указанного сервера - interaction.createSlashCommand({ name: "Название команды", description: "Описание команды" }, "Айди сервера")
// Редактирование глобальной слеш-команды
interaction
.editSlashCommand({ name: "Новое название для команды", description: "Новое описание для команды" }, "ID команды, которую хотите редактировать")
.then(console.log)
// Если хотите редактировать команду указанного сервера - interaction.editSlashCommand({ name: "Новое название для команды", description: "Новое описание для команды" }, "ID команды, которую хотите редактировать", "Айди сервера")
// Удаление глобальной слеш-команды
interaction
.deleteSlashCommand("ID команды, которую вы хотите удалить")
.then(console.log)
.catch(console.error);
// Чтобы удалить команду указанного сервера - interaction.deleteCommand("ID команды, которую вы хотите удалить", "Айди сервера")
Если у вас есть вопросы, мой Дискорд: HellLover#9626
FAQs
Модуль с русским переводом для Дискорд ботов, чтобы легко создать слеш-команды и управлять ими.
The npm package discord-slash-commands-ru receives a total of 5 weekly downloads. As such, discord-slash-commands-ru popularity was classified as not popular.
We found that discord-slash-commands-ru demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.