From 28531bc0180e6840d5bc87931099fe9c183226a5 Mon Sep 17 00:00:00 2001 From: Mui Kai En Date: Sun, 19 Sep 2021 17:14:24 +0800 Subject: [PATCH] Deprecate group DM endpoint methods The endpoints these methods call, while still functional, aren't meant for use by bots, and can't be called as implemented here. --- lib/discordrb/api/channel.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/discordrb/api/channel.rb b/lib/discordrb/api/channel.rb index 89b925470..519a35427 100644 --- a/lib/discordrb/api/channel.rb +++ b/lib/discordrb/api/channel.rb @@ -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( @@ -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( @@ -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( @@ -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( @@ -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(