pub enum Action {
Send(SendArgs),
Read(ReadArgs),
Channels(ChannelsArgs),
Join(JoinArgs),
Leave(LeaveArgs),
Discover(DiscoverArgs),
Directory(DirectoryArgs),
Permissions(PermissionsArgs),
SelfCmd(SelfArgs),
}Variants§
Send(SendArgs)
Send a message to a channel or DM.
Read(ReadArgs)
Read recent messages from a channel.
Channels(ChannelsArgs)
List channels in a guild.
Join(JoinArgs)
Join a thread channel (Discord only allows explicit joins on threads).
Leave(LeaveArgs)
Leave a thread channel.
Discover(DiscoverArgs)
Best-effort walk of the bot’s visible guilds, channels, and
members, writing a name -> snowflake map to this project’s
directory.toml. Safe to re-run; preserves hand-authored entries.
Directory(DirectoryArgs)
Inspect or hand-edit the name -> snowflake directory.
Permissions(PermissionsArgs)
Inspect, scaffold, or dry-run the permissions policy that narrows what this service may actually do.
SelfCmd(SelfArgs)
Manage the Discord user ID resolved from the literal @me in
--dm targets. Show, set (with API validation), or clear.
Trait Implementations§
Source§impl FromArgMatches for Action
impl FromArgMatches for Action
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Action
impl Subcommand for Action
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more