Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Version 0.9.1 Preparation #579

Merged
merged 4 commits into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion appup.ex
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# See the appup cookbook for instructions:
# https://www.erlang.org/doc/design_principles/appup_cookbook.html
{
~c"0.9.0",
~c"0.9.1",
[
# Upgrade instructions
{~c"0.9.0", []},
{~c"0.9.0-rc1", []},
{~c"0.9.0-alpha3", []},
{~c"0.9.0-alpha2", []},
Expand Down
Binary file added assets/versions/0_9_1_release.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions lib/nostrum/struct/guild/member.ex
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,22 @@ defmodule Nostrum.Struct.Guild.Member do

You can use `avatar_url/3` to fetch a full-formed URL of this asset.
"""
@typedoc since: "0.9.1"
@type avatar :: String.t() | nil

@typedoc """
Current guild member gate status. `false` if user has yet to pass the membership screening
configuration for the guild, `true` if the member has passed.
"""
@typedoc since: "0.9.1"
@type pending :: boolean | nil

@typedoc """
Guild member flags represented as a bitset.

Look at the `Nostrum.Struct.Guild.Member.Flags` module for guidance parsing this value.
"""
@typedoc since: "0.9.1"
@type flags :: pos_integer() | nil

@type t :: %__MODULE__{
Expand Down Expand Up @@ -167,6 +170,7 @@ defmodule Nostrum.Struct.Guild.Member do
"https://cdn.discordapp.com/guilds/1226944827137069107/users/165023948638126080/avatars/4c8319db8ea745275a1399f8f8aa74ab.png"
```
"""
@doc since: "0.9.1"
@spec avatar_url(t, Nostrum.Struct.Guild.id()) :: String.t() | nil
def avatar_url(member, guild_id, image_format \\ "png")

Expand Down
1 change: 1 addition & 0 deletions lib/nostrum/struct/guild/member/flags.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule Nostrum.Struct.Guild.Member.Flags do
@moduledoc """
Struct representing the flags a guild member can have.
"""
@moduledoc since: "0.9.1"

import Bitwise

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule Nostrum.Mixfile do
app: :nostrum,
appup: "appup.ex",
compilers: Mix.compilers() ++ [:appup],
version: "0.9.0",
version: "0.9.1",
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
Expand Down
Loading