MCPcopy Create free account

hub / github.com/Jacherr/assyst2 / functions

Functions764 in github.com/Jacherr/assyst2

↓ 201 callersMethodget
(&self, cid: &str)
assyst-core/src/command/componentctxt.rs:186
↓ 146 callersMethodreply
(&self, builder: impl Into<MessageBuilder>)
assyst-core/src/command/mod.rs:421
↓ 121 callersMethodassyst
(&self)
assyst-core/src/command/mod.rs:429
↓ 118 callersMethodcontext
(&self)
assyst-tag/src/parser.rs:548
↓ 61 callersMethodrun_flux
(&self, request: FluxRequest, time_limit: Duration)
assyst-flux-iface/src/lib.rs:67
↓ 60 callersMethodflux_handler
(&self)
assyst-core/src/command/mod.rs:433
↓ 59 callersMethodget_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 callersMethodinsert
(&self, cid: &str, ctxt: &Arc<Mutex<ComponentCtxt>>)
assyst-core/src/command/componentctxt.rs:182
↓ 37 callersMethodinsert
Add a new reminder
assyst-database/src/model/reminder.rs:61
↓ 35 callersFunctionexec
Convenience wrapper function that doesn't require ugly casts
assyst-tag/src/subtags.rs:263
↓ 33 callersMethodfg_cyan
(&self)
assyst-string-fmt/src/ansi.rs:76
↓ 30 callersMethodspan
Only call this within a tag context.
assyst-tag/src/parser.rs:566
↓ 28 callersMethodremove
True on successful remove, false otherwise
assyst-database/src/model/reminder.rs:49
↓ 27 callersMethodget
(&self, id: u64, command_name: &'static str)
assyst-core/src/command_ratelimits.rs:22
↓ 25 callersMethodoutput
(&mut self)
assyst-flux-iface/src/flux_request.rs:52
↓ 22 callersMethodoperation
(&mut self, name: String, options: HashMap<String, String>)
assyst-flux-iface/src/flux_request.rs:48
↓ 21 callersFunctionerr_res
(kind: ErrorKind)
assyst-tag/src/errors.rs:17
↓ 20 callersMethodget
(handler: &DatabaseHandler, guild_id: i64, name: &str)
assyst-database/src/model/tag.rs:12
↓ 19 callersFunctiondefault
( ctxt: CommandCtxt<'_>, #[autocomplete = "crate::command::misc::tag::tag_names_autocomplete"] tag_nam
assyst-core/src/command/misc/tag.rs:985
↓ 17 callersMethodoption_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 callersMethodparse
(input: syn::parse::ParseStream)
assyst-proc-macro/src/lib.rs:16
↓ 16 callersMethodcodeblock
(&self, language: impl Display)
assyst-string-fmt/src/markdown.rs:122
↓ 15 callersFunctionexec_sync
Executes a bash command
assyst-common/src/util/process.rs:139
↓ 14 callersMethodparse_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 callersMethoda_bold
(&self)
assyst-string-fmt/src/ansi.rs:46
↓ 13 callersMethodas_str
(&self)
assyst-core/src/rest/rust.rs:35
↓ 13 callersMethodnext_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 callersFunctionsimple_span_diag
(db: &mut DiagnosticBuilder<'_>, args: Arguments<'_>, span: Option<Range<usize>>)
assyst-tag/src/errors.rs:281
↓ 12 callersFunctionget
(parser: &mut Parser<'_>, key: String)
assyst-tag/src/subtags.rs:339
↓ 12 callersFunctionhandle
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 callersMethodrest_all
(&self, _: Label)
assyst-core/src/command/mod.rs:379
↓ 12 callersMethodset
(&self, handler: &DatabaseHandler)
assyst-database/src/model/tag.rs:28
↓ 10 callersMethodargs
(&self)
assyst-tag/src/parser.rs:532
↓ 9 callersFunctionflags_from_str
(input: &str, valid_flags: ValidFlags)
assyst-core/src/command/flags.rs:78
↓ 9 callersMethodinsert
(&self, id: u64, command_name: &'static str, value: Instant)
assyst-core/src/command_ratelimits.rs:18
↓ 9 callersMethodinteraction_client
(&'_ self)
assyst-core/src/assyst.rs:119
↓ 9 callersFunctionnot_implemented
()
assyst-tag/src/context.rs:10
↓ 8 callersMethodeat_separator
Eats a separator
assyst-tag/src/parser.rs:238
↓ 8 callersFunctionkey_value
Generates a table given a list of tuples containing strings
assyst-common/src/util/table.rs:7
↓ 8 callersFunctionwrap_anyhow
(at: Range<usize>, res: anyhow::Error)
assyst-tag/src/errors.rs:117
↓ 7 callersFunctioncut
(t: impl Display, to: usize)
assyst-string-fmt/src/markdown.rs:56
↓ 7 callersFunctionerr
(kind: ErrorKind)
assyst-tag/src/errors.rs:14
↓ 7 callersMethodfg_yellow
(&self)
assyst-string-fmt/src/ansi.rs:67
↓ 6 callersFunctiondownload_content
Attempts to download a resource from a URL.
assyst-core/src/downloader.rs:99
↓ 6 callersMethodeat
Eats a byte
assyst-tag/src/parser.rs:227
↓ 6 callersFunctionformat_duration
(duration: &Duration)
assyst-common/src/util/mod.rs:87
↓ 6 callersFunctionget_or_init_commands
Prefer [`find_command_by_name`] where possible.
assyst-core/src/command/registry.rs:112
↓ 6 callersFunctionis_unique_violation
(error: &sqlx::Error)
assyst-database/src/lib.rs:54
↓ 6 callersMethodlast_tag_start_pos
Only call this within a tag context.
assyst-tag/src/parser.rs:561
↓ 6 callersFunctionparse
(input: &str, args: &[&str], mode: ParseMode, cx: C)
assyst-tag/src/lib.rs:23
↓ 6 callersFunctionunix_timestamp
()
assyst-common/src/util/mod.rs:159
↓ 5 callersMethodadd_sample
Add a sample to the tracker.
assyst-common/src/util/rate_tracker.rs:28
↓ 5 callersMethodas_str
(&self)
assyst-common/src/util/filetype.rs:16
↓ 5 callersMethodfg_red
(&self)
assyst-string-fmt/src/ansi.rs:61
↓ 5 callersFunctionfind_command_by_name
Finds a command by its name.
assyst-core/src/command/registry.rs:130
↓ 5 callersMethodget_severity
(&self)
assyst-core/src/gateway_handler/message_parser/error.rs:48
↓ 5 callersFunctionhandle_log
(message: String)
assyst-common/src/macros.rs:49
↓ 5 callersMethodis_disabled
(&self)
assyst-core/src/bad_translator.rs:112
↓ 4 callersFunctiondefault_cache
()
assyst-database/src/cache.rs:15
↓ 4 callersFunctioneval_branch_with_i32s
(parser: &mut Parser<'_>, a: &str, b: &str, f: F)
assyst-tag/src/subtags.rs:457
↓ 4 callersFunctionget_avatar_url
(user: &User)
assyst-common/src/util/discord.rs:36
↓ 4 callersFunctionget_longer_str
Returns the longer string of the two given strings
assyst-common/src/util/table.rs:2
↓ 4 callersFunctionget_sig
(buf: &[u8])
assyst-common/src/util/filetype.rs:66
↓ 4 callersMethodinput
(&mut self, input: Vec<u8>)
assyst-flux-iface/src/flux_request.rs:44
↓ 4 callersMethodregister_task
Register a new `Task` to Assyst.
assyst-core/src/assyst.rs:105
↓ 4 callersMethodrest
The rest of the message, excluding flags.
assyst-core/src/command/mod.rs:358
↓ 4 callersMethodrun_cache_job
(&self, job: CacheJob)
assyst-core/src/persistent_cache_handler/mod.rs:57
↓ 4 callersMethodset_user_global_blacklist
(&self, user_id: u64, blacklisted: bool)
assyst-database/src/cache.rs:67
↓ 4 callersMethodstate
(&self)
assyst-tag/src/parser.rs:540
↓ 4 callersFunctionstr_expr
(s: &str)
assyst-proc-macro/src/lib.rs:392
↓ 4 callersFunctionstring_from_likely_utf8
(bytes: Vec<u8>)
assyst-common/src/util/mod.rs:139
↓ 4 callersFunctiontranslate
( client: &Client, text: &str, target: Option<&str>, count: Option<u32>, additional_data:
assyst-core/src/rest/bad_translation.rs:81
↓ 3 callersFunctionafter_command_execution_success
(ctxt: CommandCtxt<'_>, command: TCommand)
assyst-core/src/gateway_handler/event_handlers/mod.rs:18
↓ 3 callersFunctiondefault_cache
()
assyst-core/src/rest/rest_cache_handler.rs:20
↓ 3 callersFunctiondelete
( ctxt: CommandCtxt<'_>, #[autocomplete = "crate::command::misc::tag::tag_names_autocomplete"] name: W
assyst-core/src/command/misc/tag.rs:144
↓ 3 callersFunctioneval_branch
(parser: &mut Parser<'_>, condition: bool)
assyst-tag/src/subtags.rs:441
↓ 3 callersMethodexpired
(&self)
assyst-core/src/bad_translator.rs:59
↓ 3 callersMethodget_guild_disabled_commands
(&self, guild_id: u64)
assyst-database/src/cache.rs:71
↓ 3 callersFunctionget_klipy_gif_url_from_url
(client: &Client, url: &str)
assyst-core/src/rest/klipy.rs:44
↓ 3 callersMethodget_rate
Fetches the amount of current non-expired samples.
assyst-common/src/util/rate_tracker.rs:42
↓ 3 callersFunctionid_from_mention
(word: &str)
assyst-common/src/util/discord.rs:54
↓ 3 callersMethodis_escaped
Checks if the current character is escaped, i.e. the last character is \
assyst-tag/src/parser.rs:243
↓ 3 callersFunctionmin
(_: &mut Parser<'_>, (initial, Rest(args)): (i64, Rest<i64>))
assyst-tag/src/subtags.rs:388
↓ 3 callersFunctionpid_of
(name: &str)
assyst-common/src/util/process.rs:126
↓ 3 callersFunctionprepend_code
(code: &'_ str)
assyst-core/src/rest/rust.rs:150
↓ 3 callersMethodremove_expired_samples
Removes all samples from this tracker which are older than the tracking length.
assyst-common/src/util/rate_tracker.rs:22
↓ 3 callersFunctionrequest
( client: &Client, path: &str, code: &str, channel: Option<&str>, mode: Option<&str>,
assyst-core/src/rest/rust.rs:94
↓ 3 callersFunctiontracing_init
Initialises tracing logging.
assyst-common/src/util/mod.rs:72
↓ 3 callersFunctiontry_eat_closing_brace
(parser: &mut Parser<'_>)
assyst-tag/src/subtags.rs:27
↓ 3 callersMethodunreachable_invalid_utf8
(&self, err: impl StdError)
assyst-tag/src/parser.rs:424
↓ 2 callersMethodaccept_connection
Asynchronously wait for a connection to be recieved from the current listener.
assyst-common/src/pipe/pipe_server.rs:26
↓ 2 callersMethodadd_guilds
(&self, guilds: u64)
assyst-common/src/metrics_handler.rs:72
↓ 2 callersFunctionbounded_range
(start: usize, end: usize, len: usize)
assyst-common/src/util/filetype.rs:48
↓ 2 callersMethodchange_free_tier_2_requests
( &self, handler: &DatabaseHandler, change_amount: i64, )
assyst-database/src/model/free_tier_2_requests.rs:16
↓ 2 callersFunctionchar_index_to_span
(src: &str, index: usize)
assyst-tag/src/errors.rs:260
↓ 2 callersFunctioncopy
( ctxt: CommandCtxt<'_>, #[autocomplete = "crate::command::misc::tag::tag_names_autocomplete"] name: W
assyst-core/src/command/misc/tag.rs:875
↓ 2 callersFunctiondefault_cache_sized
(size: u64)
assyst-database/src/cache.rs:22
↓ 2 callersMethoddepth
(&self)
assyst-tag/src/parser.rs:544
↓ 2 callersMethoddisable
(&self)
assyst-core/src/bad_translator.rs:107
↓ 2 callersFunctiondownload_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