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

Change success output from optionName to optionId #91

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DJKnaeckebrot
Copy link

Currently guildSettingsUpdated returns this:

user: {
    id: '',
    username: 'ryans',
    avatar: 'd0ad2238c64904958f97e405bdfff81a',
    discriminator: '0',
    public_flags: 4194560,
    premium_type: 3,
    flags: 4194560,
    banner: null,
    accent_color: 10939173,
    global_name: 'Ryan',
    avatar_decoration_data: {
      asset: 'a_fed43ab12698df65902ba06727e20c0e',
      sku_id: '1144058844004233369'
    },
    banner_color: '#a6eb25',
    mfa_enabled: true,
    locale: 'en-US',
    tag: 'ryanmbananas#0',
    avatarURL: 'https://cdn.discordapp.com/avatars/511712943906226229/d0ad2238c64904958f97e405bdfff81a.png?size=1024'
  },
  changes: { successes: [ 'Primary Logs' ], errors: [] },
  guildId: '1177284212781490327'
}

I changed it to this to make working with it easier

user: {
    id: '',
    username: 'ryan',
    avatar: 'd0ad2238c64904958f97e405bdfff81a',
    discriminator: '0',
    public_flags: 4194560,
    premium_type: 3,
    flags: 4194560,
    banner: null,
    accent_color: 10939173,
    global_name: 'Ryans',
    avatar_decoration_data: {
      asset: 'a_fed43ab12698df65902ba06727e20c0e',
      sku_id: '1144058844004233369'
    },
    banner_color: '#a6eb25',
    mfa_enabled: true,
    locale: 'en-US',
    tag: 'ryan',
    avatarURL: 'https://cdn.discordapp.com/avatars/511712943906226229/d0ad2238c64904958f97e405bdfff81a.png?size=1024'
  },
  changes: { successes: [ 'prmLogs' ], errors: [] },
  guildId: '1177284212781490327'
}

@zVapor-Dev
Copy link
Member

Looks good

@DJKnaeckebrot
Copy link
Author

This thing doesnt work somehow..

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

Successfully merging this pull request may close these issues.

None yet

2 participants