Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jacherr/assyst2
/ functions
Functions
764 in github.com/Jacherr/assyst2
⨍
Functions
764
◇
Types & classes
199
↓ 201 callers
Method
get
(&self, cid: &str)
assyst-core/src/command/componentctxt.rs:186
↓ 146 callers
Method
reply
(&self, builder: impl Into<MessageBuilder>)
assyst-core/src/command/mod.rs:421
↓ 121 callers
Method
assyst
(&self)
assyst-core/src/command/mod.rs:429
↓ 118 callers
Method
context
(&self)
assyst-tag/src/parser.rs:548
↓ 61 callers
Method
run_flux
(&self, request: FluxRequest, time_limit: Duration)
assyst-flux-iface/src/lib.rs:67
↓ 60 callers
Method
flux_handler
(&self)
assyst-core/src/command/mod.rs:433
↓ 59 callers
Method
get_request_limits
This function will remove a free voter request if the user has any and are not a patron!
assyst-flux-iface/src/lib.rs:212
↓ 47 callers
Method
insert
(&self, cid: &str, ctxt: &Arc<Mutex<ComponentCtxt>>)
assyst-core/src/command/componentctxt.rs:182
↓ 37 callers
Method
insert
Add a new reminder
assyst-database/src/model/reminder.rs:61
↓ 35 callers
Function
exec
Convenience wrapper function that doesn't require ugly casts
assyst-tag/src/subtags.rs:263
↓ 33 callers
Method
fg_cyan
(&self)
assyst-string-fmt/src/ansi.rs:76
↓ 30 callers
Method
span
Only call this within a tag context.
assyst-tag/src/parser.rs:566
↓ 28 callers
Method
remove
True on successful remove, false otherwise
assyst-database/src/model/reminder.rs:49
↓ 27 callers
Method
get
(&self, id: u64, command_name: &'static str)
assyst-core/src/command_ratelimits.rs:22
↓ 25 callers
Method
output
(&mut self)
assyst-flux-iface/src/flux_request.rs:52
↓ 22 callers
Method
operation
(&mut self, name: String, options: HashMap<String, String>)
assyst-flux-iface/src/flux_request.rs:48
↓ 21 callers
Function
err_res
(kind: ErrorKind)
assyst-tag/src/errors.rs:17
↓ 20 callers
Method
get
(handler: &DatabaseHandler, guild_id: i64, name: &str)
assyst-database/src/model/tag.rs:12
↓ 19 callers
Function
default
( ctxt: CommandCtxt<'_>, #[autocomplete = "crate::command::misc::tag::tag_names_autocomplete"] tag_nam
assyst-core/src/command/misc/tag.rs:985
↓ 17 callers
Method
option_by_name
Eagerly finds an option by its name. If you want to "peek" or you aren't sure if you might want to undo this, consider using `commit_if_ok` or `fork`
assyst-core/src/command/mod.rs:400
↓ 17 callers
Method
parse
(input: syn::parse::ParseStream)
assyst-proc-macro/src/lib.rs:16
↓ 16 callers
Method
codeblock
(&self, language: impl Display)
assyst-string-fmt/src/markdown.rs:122
↓ 15 callers
Function
exec_sync
Executes a bash command
assyst-common/src/util/process.rs:139
↓ 14 callers
Method
parse_segment
Parses a single "segment" of the input A segment can be a single argument of a tag, or the entire input itself. Sometimes it's necessary to parse wit
assyst-tag/src/parser.rs:462
↓ 13 callers
Method
a_bold
(&self)
assyst-string-fmt/src/ansi.rs:46
↓ 13 callers
Method
as_str
(&self)
assyst-core/src/rest/rust.rs:35
↓ 13 callers
Method
next_word
Eagerly takes a word. If you want to "peek" or you aren't sure if you might want to undo this, consider using `commit_if_ok` or `fork` to try it in a
assyst-core/src/command/mod.rs:353
↓ 13 callers
Function
simple_span_diag
(db: &mut DiagnosticBuilder<'_>, args: Arguments<'_>, span: Option<Range<usize>>)
assyst-tag/src/errors.rs:281
↓ 12 callers
Function
get
(parser: &mut Parser<'_>, key: String)
assyst-tag/src/subtags.rs:339
↓ 12 callers
Function
handle
Handle a shard sending a READY event. READY events are not particularly interesting, but it can be useful to see if any shards are resetting often. I
assyst-core/src/gateway_handler/event_handlers/ready.rs:16
↓ 12 callers
Method
rest_all
(&self, _: Label)
assyst-core/src/command/mod.rs:379
↓ 12 callers
Method
set
(&self, handler: &DatabaseHandler)
assyst-database/src/model/tag.rs:28
↓ 10 callers
Method
args
(&self)
assyst-tag/src/parser.rs:532
↓ 9 callers
Function
flags_from_str
(input: &str, valid_flags: ValidFlags)
assyst-core/src/command/flags.rs:78
↓ 9 callers
Method
insert
(&self, id: u64, command_name: &'static str, value: Instant)
assyst-core/src/command_ratelimits.rs:18
↓ 9 callers
Method
interaction_client
(&'_ self)
assyst-core/src/assyst.rs:119
↓ 9 callers
Function
not_implemented
()
assyst-tag/src/context.rs:10
↓ 8 callers
Method
eat_separator
Eats a separator
assyst-tag/src/parser.rs:238
↓ 8 callers
Function
key_value
Generates a table given a list of tuples containing strings
assyst-common/src/util/table.rs:7
↓ 8 callers
Function
wrap_anyhow
(at: Range<usize>, res: anyhow::Error)
assyst-tag/src/errors.rs:117
↓ 7 callers
Function
cut
(t: impl Display, to: usize)
assyst-string-fmt/src/markdown.rs:56
↓ 7 callers
Function
err
(kind: ErrorKind)
assyst-tag/src/errors.rs:14
↓ 7 callers
Method
fg_yellow
(&self)
assyst-string-fmt/src/ansi.rs:67
↓ 6 callers
Function
download_content
Attempts to download a resource from a URL.
assyst-core/src/downloader.rs:99
↓ 6 callers
Method
eat
Eats a byte
assyst-tag/src/parser.rs:227
↓ 6 callers
Function
format_duration
(duration: &Duration)
assyst-common/src/util/mod.rs:87
↓ 6 callers
Function
get_or_init_commands
Prefer [`find_command_by_name`] where possible.
assyst-core/src/command/registry.rs:112
↓ 6 callers
Function
is_unique_violation
(error: &sqlx::Error)
assyst-database/src/lib.rs:54
↓ 6 callers
Method
last_tag_start_pos
Only call this within a tag context.
assyst-tag/src/parser.rs:561
↓ 6 callers
Function
parse
(input: &str, args: &[&str], mode: ParseMode, cx: C)
assyst-tag/src/lib.rs:23
↓ 6 callers
Function
unix_timestamp
()
assyst-common/src/util/mod.rs:159
↓ 5 callers
Method
add_sample
Add a sample to the tracker.
assyst-common/src/util/rate_tracker.rs:28
↓ 5 callers
Method
as_str
(&self)
assyst-common/src/util/filetype.rs:16
↓ 5 callers
Method
fg_red
(&self)
assyst-string-fmt/src/ansi.rs:61
↓ 5 callers
Function
find_command_by_name
Finds a command by its name.
assyst-core/src/command/registry.rs:130
↓ 5 callers
Method
get_severity
(&self)
assyst-core/src/gateway_handler/message_parser/error.rs:48
↓ 5 callers
Function
handle_log
(message: String)
assyst-common/src/macros.rs:49
↓ 5 callers
Method
is_disabled
(&self)
assyst-core/src/bad_translator.rs:112
↓ 4 callers
Function
default_cache
()
assyst-database/src/cache.rs:15
↓ 4 callers
Function
eval_branch_with_i32s
(parser: &mut Parser<'_>, a: &str, b: &str, f: F)
assyst-tag/src/subtags.rs:457
↓ 4 callers
Function
get_avatar_url
(user: &User)
assyst-common/src/util/discord.rs:36
↓ 4 callers
Function
get_longer_str
Returns the longer string of the two given strings
assyst-common/src/util/table.rs:2
↓ 4 callers
Function
get_sig
(buf: &[u8])
assyst-common/src/util/filetype.rs:66
↓ 4 callers
Method
input
(&mut self, input: Vec<u8>)
assyst-flux-iface/src/flux_request.rs:44
↓ 4 callers
Method
register_task
Register a new `Task` to Assyst.
assyst-core/src/assyst.rs:105
↓ 4 callers
Method
rest
The rest of the message, excluding flags.
assyst-core/src/command/mod.rs:358
↓ 4 callers
Method
run_cache_job
(&self, job: CacheJob)
assyst-core/src/persistent_cache_handler/mod.rs:57
↓ 4 callers
Method
set_user_global_blacklist
(&self, user_id: u64, blacklisted: bool)
assyst-database/src/cache.rs:67
↓ 4 callers
Method
state
(&self)
assyst-tag/src/parser.rs:540
↓ 4 callers
Function
str_expr
(s: &str)
assyst-proc-macro/src/lib.rs:392
↓ 4 callers
Function
string_from_likely_utf8
(bytes: Vec<u8>)
assyst-common/src/util/mod.rs:139
↓ 4 callers
Function
translate
( client: &Client, text: &str, target: Option<&str>, count: Option<u32>, additional_data:
assyst-core/src/rest/bad_translation.rs:81
↓ 3 callers
Function
after_command_execution_success
(ctxt: CommandCtxt<'_>, command: TCommand)
assyst-core/src/gateway_handler/event_handlers/mod.rs:18
↓ 3 callers
Function
default_cache
()
assyst-core/src/rest/rest_cache_handler.rs:20
↓ 3 callers
Function
delete
( ctxt: CommandCtxt<'_>, #[autocomplete = "crate::command::misc::tag::tag_names_autocomplete"] name: W
assyst-core/src/command/misc/tag.rs:144
↓ 3 callers
Function
eval_branch
(parser: &mut Parser<'_>, condition: bool)
assyst-tag/src/subtags.rs:441
↓ 3 callers
Method
expired
(&self)
assyst-core/src/bad_translator.rs:59
↓ 3 callers
Method
get_guild_disabled_commands
(&self, guild_id: u64)
assyst-database/src/cache.rs:71
↓ 3 callers
Function
get_klipy_gif_url_from_url
(client: &Client, url: &str)
assyst-core/src/rest/klipy.rs:44
↓ 3 callers
Method
get_rate
Fetches the amount of current non-expired samples.
assyst-common/src/util/rate_tracker.rs:42
↓ 3 callers
Function
id_from_mention
(word: &str)
assyst-common/src/util/discord.rs:54
↓ 3 callers
Method
is_escaped
Checks if the current character is escaped, i.e. the last character is \
assyst-tag/src/parser.rs:243
↓ 3 callers
Function
min
(_: &mut Parser<'_>, (initial, Rest(args)): (i64, Rest<i64>))
assyst-tag/src/subtags.rs:388
↓ 3 callers
Function
pid_of
(name: &str)
assyst-common/src/util/process.rs:126
↓ 3 callers
Function
prepend_code
(code: &'_ str)
assyst-core/src/rest/rust.rs:150
↓ 3 callers
Method
remove_expired_samples
Removes all samples from this tracker which are older than the tracking length.
assyst-common/src/util/rate_tracker.rs:22
↓ 3 callers
Function
request
( client: &Client, path: &str, code: &str, channel: Option<&str>, mode: Option<&str>,
assyst-core/src/rest/rust.rs:94
↓ 3 callers
Function
tracing_init
Initialises tracing logging.
assyst-common/src/util/mod.rs:72
↓ 3 callers
Function
try_eat_closing_brace
(parser: &mut Parser<'_>)
assyst-tag/src/subtags.rs:27
↓ 3 callers
Method
unreachable_invalid_utf8
(&self, err: impl StdError)
assyst-tag/src/parser.rs:424
↓ 2 callers
Method
accept_connection
Asynchronously wait for a connection to be recieved from the current listener.
assyst-common/src/pipe/pipe_server.rs:26
↓ 2 callers
Method
add_guilds
(&self, guilds: u64)
assyst-common/src/metrics_handler.rs:72
↓ 2 callers
Function
bounded_range
(start: usize, end: usize, len: usize)
assyst-common/src/util/filetype.rs:48
↓ 2 callers
Method
change_free_tier_2_requests
( &self, handler: &DatabaseHandler, change_amount: i64, )
assyst-database/src/model/free_tier_2_requests.rs:16
↓ 2 callers
Function
char_index_to_span
(src: &str, index: usize)
assyst-tag/src/errors.rs:260
↓ 2 callers
Function
copy
( ctxt: CommandCtxt<'_>, #[autocomplete = "crate::command::misc::tag::tag_names_autocomplete"] name: W
assyst-core/src/command/misc/tag.rs:875
↓ 2 callers
Function
default_cache_sized
(size: u64)
assyst-database/src/cache.rs:22
↓ 2 callers
Method
depth
(&self)
assyst-tag/src/parser.rs:544
↓ 2 callers
Method
disable
(&self)
assyst-core/src/bad_translator.rs:107
↓ 2 callers
Function
download_web_media
Attempts to download web media. Will try all APIs until one succeeds, unless `opts.api_url_override` is set.
assyst-core/src/rest/web_media_download.rs:118
next →
1–100 of 764, ranked by callers