edit guild, name headers for resets
This commit is contained in:
@ -98,10 +98,12 @@ const {Client, GatewayIntentBits, EmbedBuilder} = require('discord.js');
|
||||
try {
|
||||
const response = await axios.post(
|
||||
`${process.env.API_PATH}/reset-conversation`, {}, {
|
||||
headers: {
|
||||
'x-forwarded-for-id': message.author.id,
|
||||
|
||||
}
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'x-forwarded-for-id': message.author.id,
|
||||
'x-forwarded-for-name': message.author.username,
|
||||
'x-forwarded-for-guild': message.guild.name
|
||||
}
|
||||
}
|
||||
);
|
||||
console.log(response.status)
|
||||
|
Reference in New Issue
Block a user