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

Added support for news channel #1162

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

RealYusufIsmail
Copy link
Contributor

@RealYusufIsmail RealYusufIsmail commented Oct 22, 2022

Checklist

Changelog

  • Added support for news channel
  • Removed channel type SERVER_STORE_CHANNEL as it was removed by discord a long time ago
  • ServerTextChannel now extends ServerMessageChannel and so does NewsChannel
    This is because everything apart from slow mode is the same. Slowmode is in the interface ServerTextChannel

Breaking Changes

ServerTextChannel and, (consistently named) ServerNewsChannel now inhert ServerMessageChannel

Description

Closes: #453

Footnotes

  1. At least started a running bot instance with your changes and triggered an event so your changed code gets executed.

@RealYusufIsmail RealYusufIsmail marked this pull request as draft October 22, 2022 12:31
@RealYusufIsmail RealYusufIsmail marked this pull request as ready for review October 23, 2022 10:58
@RealYusufIsmail RealYusufIsmail mentioned this pull request Oct 23, 2022
2 tasks
added follow Channel method to news channel

Removed channel type SERVER_STORE_CHANNEL as it was removed by discord a long time ago

ServerTextChannel now extends ServerMessageChannel and so does NewsChannel
This is because everything apart from slow mode is the same. Slowmode is in the interface ServerTextChannel
added follow Channel method to news channel

Removed channel type SERVER_STORE_CHANNEL as it was removed by discord a long time ago

ServerTextChannel now extends ServerMessageChannel and so does NewsChannel
This is because everything apart from slow mode is the same. Slowmode is in the interface ServerTextChannel
@Saladoc Saladoc marked this pull request as draft November 7, 2022 13:37
@RealYusufIsmail
Copy link
Contributor Author

Unable to work on. Most is done just testing and some minor changes are needed so if someone wants to take over let me know.

import java.util.Optional;
import java.util.concurrent.CompletableFuture;

public interface ServerMessageChannel extends RegularServerChannel, TextChannel, Mentionable, Categorizable {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make it extend TextableRegularServerChannel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

News Channels
1 participant