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

Continuation from #110: Add get_guild_ban and fix typo, cast into struct. #224

Merged
merged 2 commits into from
May 14, 2021

Conversation

jchristgit
Copy link
Collaborator

@jchristgit jchristgit commented Feb 6, 2021

iex(2)> Nostrum.Api.get_guild_ban(x, y)
{:ok,
 %Nostrum.Struct.Guild.Ban{
   reason: "spamming",
   user: %Nostrum.Struct.User{
     avatar: "xxxx",
     bot: nil,
     discriminator: "0000",
     email: nil,
     id: zzzz,
     mfa_enabled: nil,
     public_flags: %Nostrum.Struct.User.Flags{
       bug_hunter_level_1: false,
       bug_hunter_level_2: false,
       early_supporter: false,
       hypesquad_balance: false,
       hypesquad_bravery: true,
       hypesquad_brilliance: false,
       hypesquad_events: false,
       partner: false,
       staff: false,
       system: false,
       team_user: false,
       verified_bot: false,
       verified_developer: false
     },
     username: "gggg",
     verified: nil
   }
 }}

Copy link
Owner

@Kraigie Kraigie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SEND IT BUD

@jchristgit jchristgit merged commit 2adbb30 into master May 14, 2021
@jchristgit
Copy link
Collaborator Author

Thanks!

@jchristgit jchristgit deleted the add-get-guild-ban branch May 14, 2021 08:12
@jchristgit jchristgit removed the request for review from jb3 May 14, 2021 08:12
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.

4 participants