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

No method for retrieving the "Welcome New Members" channel #815

Closed
LordKanelsnegle opened this issue Sep 16, 2017 · 3 comments
Closed

No method for retrieving the "Welcome New Members" channel #815

LordKanelsnegle opened this issue Sep 16, 2017 · 3 comments

Comments

@LordKanelsnegle
Copy link

Recently Discord has added a feature under Server Settings>Overview where one can set a channel as the channel that welcome messages will be sent to when a user joins. However, this change doesn't seem to be reflected in the .NET API yet as I can't find a method for obtaining the text channel set for welcoming new users. Will this be implemented, or has it already been implemented?

@Joe4evr
Copy link
Contributor

Joe4evr commented Sep 16, 2017

It appears that it's not even entirely known what the API sends out to indicate that there is a "Welcome Messages channel" set. Once that is known, it shouldn't be that hard to add it to the model.

API-Level Proposal:

pubic interface IGuild
{
+    ulong? WelcomeChannelId { get; }
}

public class SocketGuild
{
# same-kind deal with the other implementations, just using Socket since it's the most used one
+    public Optional<SocketTextChannel> WelcomeChannel { get; }
}

@khionu
Copy link
Contributor

khionu commented Sep 16, 2017

I did some testing, it's system_channel_id on guild objects, for some reason.

@foxbot
Copy link
Member

foxbot commented Sep 27, 2017

Resolved as of 30e867a

@foxbot foxbot closed this as completed Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants