nyxx-discord / nyxx

Wrapper around Discord API for Dart
Apache License 2.0
326 stars 49 forks source link

Adding toBuilder() method on GuildChannel #672

Closed doEggi closed 2 months ago

doEggi commented 2 months ago

Description

I created and implemented the toBuilder method on GuildChannel and all its variants. This way you can "clone" a channel of a guild without copying the data manually. Also you can use an existing channel as a template for new channels.

Connected issues & other potential problems

https://github.com/nyxx-discord/nyxx_extensions/issues/38#issuecomment-2198307221 PS: I don't know how to tag an issue of another repo :(

Type of change

Checklist:

Todo:

MCausc78 commented 2 months ago

This probably should be in nyxx_extensions

Rapougnac commented 2 months ago

As MCaus already said, the scope of this PR is beyond nyxx. This should be in nyxx_extensions instead.