Channels
Building custom messages from the discord-giveaway package
I'm building an discord giveaway system using https://discord-giveaways.js.org/global.html#GiveawayStartOptions. Now can i change the "standard" values for exmaple of the winmessage. If so how?
Broken Code
https://sourceb.in/C0SmTySYXe the ticketmodel7 does not work, after diagnosing it, it does not even reach the point where the if ticket_model7...
help
const fetch = require('node-fetch');
^
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\georg\Desktop\brickbronze\looker\node_modules\node-fetch\src\index.js from C:\Users\georg\Desktop\brickbronze\looker\main.js not supported.
Instead change the require of index.js in C:\Users\georg\Desktop\brickbronze\looker\main.js to a dynamic import() which is available in all CommonJS modules....
Create channel
Hello i don't why i have this error :
Invalid Form Body
name[BASE_TYPE_REQUIRED]: This field is required...
Connection Timed Out
Just uploaded my bot to a vps after rewriting it entirely in ts. Not a single issue locally but now on the vps I get this error. ```
/root/Sailor-Moon/node_modules/undici/lib/core/connect.js:190
util.destroy(socket, new ConnectTimeoutError(message))
^
ConnectTimeoutError: Connect Timeout Error (attempted addresses: 162.159.137.232:443)...
My discord bot doesnt respond when i write a command in DM but in server or guild it reply
I just get into discord bot stuff and trying to improve my soft skill in coding so I give a shot to develop a discord bot.
Unfortunately, there are some error which is my discord does not respond in DM but only did in server. Is there any error in my code?...
Roles not adding correctly
```ts
// Member is a GuildMember, passed from the interaction's interaction.member. i.e.:
const member = interaction.member;
// Example of rolesToAdd:
const rolesToAdd = new Map([...
Roles not adding correctly
```ts
// Member is a GuildMember, passed from the interaction's interaction.member. i.e.:
const member = interaction.member;
// Example of rolesToAdd:
const rolesToAdd = new Map([...
why this collector isnt working?its not responding to the answers
```js
module.exports = {
data: new SlashCommandBuilder()
.setName("quotes-quiz")
.setDescription("Answer some league quotes"),...
why cant i see my slash command when i test it? its not working
```js
const { Client, Intents } = require('discord.js');
const client = new Client({
intents: [...
Do I need to manually check if each message in an Array is bulkDeletable?
I am currently writing a purge command for my bot, I mean, app, and I came across the
Message
property bulkDeletable
. Do I need to loop through my finalized Array
and check the Message
s individually against the permissions of the interaction's caller?TypeError: Cannot read properties of undefined (reading 'GUILD_VOICE_STATES')
why is this happening
const { Client, GatewayIntentBits } = require('discord.js')
const client = new Client({
intents: [...
Wrong user count
```js
const { EmbedBuilder, ApplicationCommandType, time, version } = require('discord.js');
const botJSON = require('../../package.json');
const config = require("../../config.json");
const superagent = require("superagent");...
Stuck in joinVoiceChannel connection stuck in signalling - any advice?
I do have the voice state intent set:
index.js
```
require('dotenv/config');...
Nested message component collector not firing
Can anyone help me with this? Response from second button not firing
```ts
private async handleComponentInteraction(target: GuildMember, initialInteraction: InitialInteraction, interaction: MessageComponentInteraction) {
if (interaction.isButton()) {
switch (interaction.customId) {...
Error
so I have been trying to create a discord bot using discord.js. Upon creating the bot, i realised there were some errors. after checking what errors they were i found mootools and it said that there was no fix to it. If i cannot fix it how can i run my code?
''Sorry, name can only contain URL-friendly characters''
When I try to install the library it gives this error