VEGA
VEGA
DIAdiscord.js - Imagine an app
Created by VEGA on 1/30/2024 in #djs-questions
Trying to add guild emoji to button getting error
ValidationError > s.object(T)
Expected the value to be an object, but received string instead

Received:
| '1199478685825253396'
ValidationError > s.object(T)
Expected the value to be an object, but received string instead

Received:
| '1199478685825253396'
using it here
const row = new ActionRowBuilder().addComponents(
new ButtonBuilder()
.setLabel('Watch on Twitch')
.setURL(`https://twitch.tv/${channel.user_name}`)
.setStyle(ButtonStyle.Link)
.setEmoji('1199478685825253396')
);
const row = new ActionRowBuilder().addComponents(
new ButtonBuilder()
.setLabel('Watch on Twitch')
.setURL(`https://twitch.tv/${channel.user_name}`)
.setStyle(ButtonStyle.Link)
.setEmoji('1199478685825253396')
);
here is what i imported
const { ButtonBuilder } = require('@discordjs/builders');
const axios = require('axios');
const { EmbedBuilder , ActionRowBuilder , ButtonStyle } = require('discord.js');
const discordModule = require('../discordModule');
const { ButtonBuilder } = require('@discordjs/builders');
const axios = require('axios');
const { EmbedBuilder , ActionRowBuilder , ButtonStyle } = require('discord.js');
const discordModule = require('../discordModule');
4 replies