is it possible for .catch() to contain sensitive data?
i mean, is it possible to leak some private info like Bot Token if you directly share .catch() error in discord?
11 Replies
this is an example of what im getting now and it's fine:
and the code:
always depends on what you catch as well, you could technically throw your config
yeah it's ephemeral.
well i will just use it in cases that i'm 99% sure it's a ApiError or something, like .catch() on adding roles OR creating channels. so i guess it's fine, right?
and it will be always ephemeral
i personally prefer to discern them based on codes and having the user facing error something useful for them, not me, and log the actual error to look at, if need be
true
so i guess ill just remove the ${err} and add something from myself
for example, here, on missing perms, it'd make sense to tell the user to enable which perms
yeah true
thanks for your time :D
but yeah, generally, discord api errors should not be leakign credentials
thanks!
ill archive it
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
oh boi, you did not read the issue at all, did you... locking