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

Remove all user account features #1338

Draft
wants to merge 35 commits into
base: dev
Choose a base branch
from
Draft

Conversation

bsian03
Copy link
Collaborator

@bsian03 bsian03 commented Feb 10, 2022

No description provided.

@coolcalcacol
Copy link
Contributor

Ain't GUILD_SYNC a legacy user implementation as well in shard?

@DonovanDMC
Copy link
Contributor

DonovanDMC commented Feb 11, 2022

you left some interfaces dangling around (UserProfile/UserSettings) and a bunch of GroupChannel remnants

And some very old bots can technically be in Group Channels iirc, I assume we aren't considering that as a valid enough reason to keep the around though (made a pr, bsian03#21)

index.d.ts Outdated Show resolved Hide resolved
index.d.ts Outdated Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
lib/gateway/Shard.js Outdated Show resolved Hide resolved
lib/gateway/Shard.js Outdated Show resolved Hide resolved
@GoldenAngel2
Copy link

Client#editGuildIntegration, Client#syncGuildIntegration, Guild#editIntegration, Guild#syncIntegration, GuildIntegration#, GuildIntegration#sync, GuildIntegration#edit can be removed as well, since those can only be used by user accounts.

@bsian03
Copy link
Collaborator Author

bsian03 commented Feb 11, 2022

I'm in the process of going through all of them now that I'm on my laptop

lib/voice/VoiceConnection.js Outdated Show resolved Hide resolved
@DonovanDMC
Copy link
Contributor

More things I've just found, the event definitions for callCreate, callDelete, callRing & callUpdate are still floating around

lib/Client.js Outdated Show resolved Hide resolved
DonovanDMC added a commit to DonovanArchive/ErisPRUpdateBot that referenced this pull request Jul 18, 2022
@gamer0mega
Copy link

you may aswell want to remove the hit property from Message, as it is meant for a user-only search feature

Comment on lines -3071 to -3075
: CH extends Extract<InviteChannel, GroupChannel> // Invite without Metadata
? never // If the channel is GroupChannel, there is no guild
: CH extends Exclude<InviteChannel, InvitePartialChannel> // Invite without Metadata and not GroupChanel
? Guild // If the invite channel is not partial
: Guild | undefined; // If the invite channel is partial
Copy link
Contributor

Choose a reason for hiding this comment

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

Bots can still fetch group invites
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can probably just type this as InvitePartial in that case

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Wait, is this not the correct behaviour anyways? We could check for channel type but that causes more headaches for not much profit

lib/Client.js Outdated Show resolved Hide resolved
@@ -70,7 +70,7 @@ converterCommand.pickCommand = function pickCommand() {
* @prop {Number} current.pausedTimestamp The timestamp of the most recent pause
* @prop {Number} current.playTime How long the current stream has been playing for, in milliseconds
* @prop {Number} current.startTime The timestamp of the start of the current stream
* @prop {String} id The ID of the voice connection (guild ID)
Copy link
Contributor

Choose a reason for hiding this comment

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

having (guild ID) in parenthesis seems clearer than "the guild id of the voice connection"

Copy link
Contributor

@DonovanDMC DonovanDMC left a comment

Choose a reason for hiding this comment

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

besides the above, LGTM

@DonovanDMC
Copy link
Contributor

DonovanDMC commented Aug 8, 2022

I've gone back through some documentation, and now see that GroupChannels are not purely userbot features. Any removals or changes should be undone. Correction: The removals from they gateway are fine, all the other removals should be undone.

#1406 properly implements the official api methods for them.

@HeadTriXz
Copy link
Contributor

I've gone back through some documentation, and now see that GroupChannels are not purely userbot features. Any removals or changes should be undone.

#1406 properly implements the official api methods for them.

Bots can not join group channels anymore though, some bots may still be in one because it was possible in the past. But they do not receive any messages.

@DonovanDMC
Copy link
Contributor

I didn't say they could join them, they can't be received over the gateway sure but they can be retrieved from rest just fine if the bot created it

@bsian03
Copy link
Collaborator Author

bsian03 commented Aug 8, 2022

Don't think it's worth maintaining/keeping in Eris. The % of bots having continuous access to group channels is miniscule, if anything

@bsian03 bsian03 marked this pull request as draft January 10, 2024 01:57
@bsian03 bsian03 mentioned this pull request Jan 17, 2024
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants