Class StandaloneDiscordAudiences
java.lang.Object
net.lucypoulton.squirtgun.discord.standalone.StandaloneDiscordAudiences
- All Implemented Interfaces:
DiscordAudiences
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.audience.Audience
channel(net.dv8tion.jda.api.entities.TextChannel channel)
Creates an audience for a Discord text channel.@NotNull DiscordUser
user(net.dv8tion.jda.api.entities.User user)
Creates an audience for a private message with a Discord account.
-
Constructor Details
-
StandaloneDiscordAudiences
public StandaloneDiscordAudiences()
-
-
Method Details
-
channel
@NotNull public @NotNull net.kyori.adventure.audience.Audience channel(net.dv8tion.jda.api.entities.TextChannel channel)Description copied from interface:DiscordAudiences
Creates an audience for a Discord text channel.- Specified by:
channel
in interfaceDiscordAudiences
- Parameters:
channel
- the channel to create an audience for- Returns:
- the audience
-
user
Description copied from interface:DiscordAudiences
Creates an audience for a private message with a Discord account. Note that users can disable private messaging from non-friends, in which case messages will not be received.- Specified by:
user
in interfaceDiscordAudiences
- Parameters:
user
- the user to open a private message with- Returns:
- the audience
-