added no-id-found check for discord link
This commit is contained in:
parent
b4e0869215
commit
08d55e167f
1 changed files with 2 additions and 2 deletions
|
@ -120,8 +120,8 @@ export default class DiscordRichPresence {
|
|||
delete activity.largeImageText
|
||||
}
|
||||
|
||||
activity.buttons.forEach((key: {label: string, url: string}, value: Number) => {
|
||||
if (key.url.endsWith('undefined') || key.url.includes('undefined')) {
|
||||
activity.buttons.forEach((key: {label: string, url: string}, _v: Number) => {
|
||||
if (key.url.includes('undefined') || key.url.includes('no-id-found')) {
|
||||
activity.buttons.splice(key, 1);
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue