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

Deprecate group DM endpoint methods #86

Merged
merged 1 commit into from
Apr 14, 2022
Merged
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
5 changes: 5 additions & 0 deletions lib/discordrb/api/channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ def unpin_message(token, channel_id, message_id, reason = nil)
end

# Create an empty group channel.
# @deprecated Discord no longer supports bots in group DMs, this endpoint was repurposed and no longer works as implemented here.
# https://discord.com/developers/docs/resources/user#create-group-dm
def create_empty_group(token, bot_user_id)
Discordrb::API.request(
Expand All @@ -346,6 +347,7 @@ def create_empty_group(token, bot_user_id)
end

# Create a group channel.
# @deprecated Discord no longer supports bots in group DMs, this endpoint was repurposed and no longer works as implemented here.
# https://discord.com/developers/docs/resources/channel#group-dm-add-recipient
def create_group(token, pm_channel_id, user_id)
Discordrb::API.request(
Expand All @@ -366,6 +368,7 @@ def create_group(token, pm_channel_id, user_id)
end

# Add a user to a group channel.
# @deprecated Discord no longer supports bots in group DMs, this endpoint was repurposed and no longer works as implemented here.
# https://discord.com/developers/docs/resources/channel#group-dm-add-recipient
def add_group_user(token, group_channel_id, user_id)
Discordrb::API.request(
Expand All @@ -380,6 +383,7 @@ def add_group_user(token, group_channel_id, user_id)
end

# Remove a user from a group channel.
# @deprecated Discord no longer supports bots in group DMs, this endpoint was repurposed and no longer works as implemented here.
# https://discord.com/developers/docs/resources/channel#group-dm-remove-recipient
def remove_group_user(token, group_channel_id, user_id)
Discordrb::API.request(
Expand All @@ -393,6 +397,7 @@ def remove_group_user(token, group_channel_id, user_id)
end

# Leave a group channel.
# @deprecated Discord no longer supports bots in group DMs, this endpoint was repurposed and no longer works as implemented here.
# https://discord.com/developers/docs/resources/channel#deleteclose-channel
def leave_group(token, group_channel_id)
Discordrb::API.request(
Expand Down