Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promise { <rejected> Error: Forbidden #307

Open
developeraex opened this issue Nov 4, 2022 · 1 comment
Open

Promise { <rejected> Error: Forbidden #307

developeraex opened this issue Nov 4, 2022 · 1 comment

Comments

@developeraex
Copy link

developeraex commented Nov 4, 2022

image

js const hastebin = require("hastebin-gen"); if(interaction.customId === 'sure-yes') { await interaction.channel.messages.fetch({limit: 100}); hastebin(${interaction.channel.messages.cache.map(msg => **${msg.member.user.tag}** => ${msg.content}).join("\n")}, { extension: "txt" }).then((haste) => { let ChannelLog = bot.channels.cache.get(rotex.logsticket) let LogEmbed = new Discord.MessageEmbed() .setAuthor(interaction.guild.name + ' | Log', interaction.guild.iconURL({dynamic:true})) .setTitle("**Action: Deleted.**") .setColor("RED") .setThumbnail('https://media.discordapp.net/attachments/831158984517877836/1029915739072770181/HL_LOGO_SSS2.png?width=676&height=676') .setDescription(Channel: ${interaction.channel.name}
Transcript: Click Here
) .setFooter(interaction.guild.name) ChannelLog.send({embeds:[LogEmbed]}) interaction.channel.delete(); }) }

@developeraex
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant