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

[Bug] Transfer of Discord Server Ownership is not considered #65

Open
jediefe opened this issue May 3, 2021 · 1 comment
Open

[Bug] Transfer of Discord Server Ownership is not considered #65

jediefe opened this issue May 3, 2021 · 1 comment
Labels
drivers/discord Discord driver related issues

Comments

@jediefe
Copy link

jediefe commented May 3, 2021

Hi,

I just recently transferred our Discord server to a generic account so that every user can be treated equally by the bot which makes things easier. The initial setup was being the server owner not being identical to the SeAT administrator, as these are different persons. However, after changing the owner the owner id wasn’t updated and by looking into the source code I found this line to be the cause: https://github.com/warlof/seat-discord-connector/blob/25ac988328293e1762bb9acbc618f3b81e98bb16/src/Driver/DiscordClient.php#L253 where the id is only updated if the initial value is null.
I think it should be considered to check the owner id in every run as are all other parameters. I fixed it temporarily on my server by removing the condition.

@warlof
Copy link
Owner

warlof commented Jul 31, 2021

Hi,

Affaict, this part is a mitigate migration thing for user running old seat-discord-connector version - since in previous versions, owner ID was not stored in the system.

Checking owner on every instance sounds like a bit massive - however, updating connector setup shoulds properly renew the owner ID https://github.com/warlof/seat-discord-connector/blob/25ac988328293e1762bb9acbc618f3b81e98bb16/src/Http/Controllers/SettingsController.php#L100

@warlof warlof added the drivers/discord Discord driver related issues label Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drivers/discord Discord driver related issues
Projects
None yet
Development

No branches or pull requests

2 participants