What is the event name for when vanity gets updated?
i tried looking into guildUpdate but it's not there
Solution:Jump to solution
You could fetch the audit log in the guildUpdateEvent
Or you could use the auditlog event...
25 Replies
This is a DiscordJS question, not a Sapphire question. It should be on
guildUpdate
. You're better off asking this in the DiscordJS server discord.gg/djsi'm banned from that server.
it's not in guildUpdate though
Maybe you should've behaved better then
ngl no
there is no other event that it can be on, refer to https://discord.js.org/docs/packages/discord.js/14.14.1/Client:Class
discord.js | Client
The main hub for interacting with the Discord API, and the starting point for any bot.
i got banned bceuse like uh
"political harassment in support"
yes
wait whast
political harrasment?
LOL
news flash, all the devs in this server are also staff or proficient (in my particular case) in DJS so we have access to mod logs
do they have the message log of me politcally harrrasing someone
shrug. Maybe. I couldn't be bothered to look it up though. Anyway lets get back to the topic.
i tried making it return both old and new guild but i think the newguild doesn't exist
yep, undefined
yeah that's wrong. There is no client as first parameter. Not sure what you're basing that on. The first parameter is the old guild and the second new guild. The match 1:1 with the DJS documentation: https://discord.js.org/docs/packages/discord.js/14.14.1/Client:Class#guildUpdate
discord.js | Client
The main hub for interacting with the Discord API, and the starting point for any bot.
oh yea
to get access to the client in Sapphire you use
this.container.client
yea
can i see who updated the guild?
Nope, Discord API doesn't expose that on that event. But you can use guildAuditLogEntryCreate though as being a separate event you may run into race conditions so better not
how do wick do it tho
they have a system where you update something they strip your roles and stuff
if i'm not wrong
idk what bot Wick is
that one antiraid bot
never heard of it
anti raid is also built into Discord anyway so bots for it aren't needed anymore
Solution
You could fetch the audit log in the guildUpdateEvent
Or you could use the auditlog event
will try