Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Discord-TTS/Bot
/ functions
Functions
274 in github.com/Discord-TTS/Bot
⨍
Functions
274
◇
Types & classes
75
↓ 101 callers
Method
get
(&self, identifier: CacheKey)
tts_core/src/database.rs:97
↓ 54 callers
Method
clone
(&self)
tts_tasks/src/logging.rs:155
↓ 24 callers
Method
try_unwrap
(self)
tts_core/src/opt_ext.rs:14
↓ 19 callers
Method
send_error
( &'ctx self, error_message: impl Into<Cow<'ctx, str>>, )
tts_core/src/traits.rs:81
↓ 18 callers
Method
set_one
( &self, identifier: CacheKey, key: &'static str, value: Val, )
tts_core/src/database.rs:119
↓ 8 callers
Method
is_premium_simple
( &self, http: &serenity::Http, guild_id: GuildId, )
tts_core/src/structs.rs:373
↓ 6 callers
Method
edit_message
( &self, interaction: serenity::ComponentInteraction, disable: bool, )
tts_commands/src/settings/voice_paginator/mod.rs:78
↓ 6 callers
Method
invalidate_cache
(&self, identifier: &CacheKey)
tts_core/src/database.rs:152
↓ 6 callers
Method
parse_user_or_guild
( &self, http: &serenity::Http, author_id: UserId, guild_id: Option<GuildId>,
tts_core/src/structs.rs:384
↓ 5 callers
Method
delete
(&self, identifier: CacheKey)
tts_core/src/database.rs:142
↓ 5 callers
Function
handle_unexpected
( ctx: &serenity::Context, event: &'a str, error: Error, extra_fields: &mut (dyn Iterator<Item
tts_core/src/errors.rs:45
↓ 5 callers
Method
maybe_clone_into
(self, target: &mut Self)
tts_core/src/process_msg.rs:230
↓ 5 callers
Function
random_footer
(server_invite: &str, client_id: serenity::UserId)
tts_core/src/common.rs:114
↓ 5 callers
Function
truncate_convert
( mut s: String, field_name: &'static str, )
tts_core/src/database_models.rs:12
↓ 4 callers
Method
default_voice
(self)
tts_core/src/structs.rs:528
↓ 4 callers
Method
log
(&self, event: Cow<'static, str>, kind: impl Into<EventType>)
tts_core/src/analytics.rs:25
↓ 4 callers
Function
make_pages
()
tts_commands/src/settings/voice_paginator/cursor.rs:57
↓ 4 callers
Method
neutral_colour
(&self)
tts_core/src/traits.rs:36
↓ 4 callers
Function
remove_premium
(data: &Data, guild_id: serenity::GuildId)
tts_core/src/common.rs:53
↓ 4 callers
Method
start
(mut self)
tts_commands/src/settings/voice_paginator/mod.rs:92
↓ 3 callers
Method
advance
(&mut self)
tts_commands/src/settings/voice_paginator/cursor.rs:44
↓ 3 callers
Method
author_permissions
(&self)
tts_core/src/traits.rs:47
↓ 3 callers
Function
average_details
(iter: impl Iterator<Item = Vec<typesize::Field>>)
tts_commands/src/owner.rs:207
↓ 3 callers
Method
bind_query
(self, query: Query<'_>)
tts_core/src/database.rs:20
↓ 3 callers
Function
channel_check
Returns Some(GuildRow) on correct channel, otherwise None.
tts_commands/src/main_.rs:26
↓ 3 callers
Function
confirm_dialog
( ctx: Context<'_>, prompt: &str, positive: &str, negative: &str, )
tts_core/src/common.rs:164
↓ 3 callers
Method
create_row
(&self, identifier: CacheKey)
tts_core/src/database.rs:110
↓ 3 callers
Function
end_connection
(interconnect: UnboundedSender<InterconnectMessage>)
tts_core/src/voice/mod.rs:156
↓ 3 callers
Method
fetch_premium_info
( &self, http: &serenity::Http, user_id: UserId, )
tts_core/src/structs.rs:332
↓ 3 callers
Function
format_languages
(mut iter: impl Iterator<Item = &'a FixedString<u8>>)
tts_commands/src/settings/mod.rs:363
↓ 3 callers
Function
guild_iter
(cache: &serenity::Cache)
tts_commands/src/owner.rs:197
↓ 3 callers
Method
is_premium
(self)
tts_core/src/structs.rs:520
↓ 3 callers
Method
parse_user_or_guild_with_premium
( &self, author_id: UserId, guild_info: Option<(GuildId, bool)>, )
tts_core/src/structs.rs:399
↓ 3 callers
Function
push_permission_names
(buffer: &mut String, permissions: serenity::Permissions)
tts_core/src/common.rs:43
↓ 3 callers
Method
raw_channel_id
(&self)
tts_core/src/voice/mod.rs:73
↓ 3 callers
Method
rewind
(&mut self)
tts_commands/src/settings/voice_paginator/cursor.rs:27
↓ 3 callers
Function
safe_truncate
Avoid char boundary panics with utf8 chars
tts_core/src/common.rs:184
↓ 3 callers
Method
select_tts_index
(&self, guild_id: serenity::GuildId)
tts_core/src/structs.rs:246
↓ 3 callers
Method
send_ephemeral
( &'ctx self, message: impl Into<Cow<'ctx, str>>, )
tts_core/src/traits.rs:71
↓ 3 callers
Method
speaking_rate_info
(self)
tts_core/src/structs.rs:538
↓ 3 callers
Function
tts_
(ctx: Context<'_>, author: &serenity::User, message: &str)
tts_commands/src/other.rs:96
↓ 2 callers
Method
as_premium_info
(self)
tts_core/src/structs.rs:157
↓ 2 callers
Method
author_vc
(&self)
tts_core/src/traits.rs:29
↓ 2 callers
Function
blank_field
()
tts_core/src/errors.rs:35
↓ 2 callers
Function
can_change_mode
( ctx: &Context<'_>, mode: Option<TTSMode>, guild_is_premium: bool, )
tts_commands/src/settings/mod.rs:286
↓ 2 callers
Function
can_send
( guild: &serenity::Guild, channel: &serenity::GuildChannel, member: &serenity::Member, )
tts_commands/src/settings/setup.rs:23
↓ 2 callers
Function
can_send_generic
(permissions: Permissions)
tts_commands/src/settings/setup.rs:19
↓ 2 callers
Function
change_voice
( ctx: &'a Context<'a>, general_db: &'a database::Handler<T, RowT1>, voice_db: &'a database::Handl
tts_commands/src/settings/mod.rs:319
↓ 2 callers
Function
channel
(ctx: Context<'_>)
tts_commands/src/other.rs:278
↓ 2 callers
Function
confirm_dialog_buttons
(positive: &'a str, negative: &'a str)
tts_core/src/common.rs:130
↓ 2 callers
Function
confirm_dialog_wait
( ctx: &serenity::Context, message_id: serenity::MessageId, author_id: serenity::UserId, )
tts_core/src/common.rs:141
↓ 2 callers
Function
connect_ws_stream
(mut url: reqwest::Url)
src/startup.rs:117
↓ 2 callers
Function
count_members
(guilds: impl Iterator<Item = serenity::cache::GuildRef<'a>>)
tts_tasks/src/web_updater.rs:22
↓ 2 callers
Method
create_action_row
(&self, disabled: bool)
tts_commands/src/settings/voice_paginator/mod.rs:49
↓ 2 callers
Method
create_page
(&self, page: &str)
tts_commands/src/settings/voice_paginator/mod.rs:37
↓ 2 callers
Function
create_warning_embed
(title: &'a str, footer: &'a str)
tts_commands/src/main_.rs:98
↓ 2 callers
Method
current
(&self)
tts_commands/src/settings/voice_paginator/cursor.rs:31
↓ 2 callers
Function
details_iter
( iter: impl Iterator<Item = &'a (impl typesize::TypeSize + 'a)>, )
tts_commands/src/owner.rs:201
↓ 2 callers
Function
fetch_json
(reqwest: &reqwest::Client, url: reqwest::Url)
src/startup.rs:39
↓ 2 callers
Function
filter_channels_by
( guild: &'a serenity::Guild, bot_member: &'a serenity::Member, kind: serenity::ChannelType, r
tts_commands/src/owner.rs:335
↓ 2 callers
Function
format_channels
(channels: impl Iterator<Item = &'a serenity::GuildChannel>)
tts_commands/src/owner.rs:351
↓ 2 callers
Function
format_params
(buf: &mut String, command: &Command)
tts_commands/src/help.rs:37
↓ 2 callers
Function
format_voice
(data: &Data, voice: &'a str, mode: TTSMode)
tts_commands/src/settings/mod.rs:29
↓ 2 callers
Function
get_premium_guilds
( conn: impl sqlx::PgExecutor<'a> + 'a, premium_user: serenity::UserId, )
tts_commands/src/premium.rs:26
↓ 2 callers
Function
get_voice_name
(data: &'a Data, code: &str, mode: TTSMode)
tts_commands/src/settings/mod.rs:379
↓ 2 callers
Function
handle
(ctx: &serenity::Context, data_about_bot: &serenity::Ready)
tts_events/src/ready.rs:115
↓ 2 callers
Function
handle_guild
( name: &str, ctx: &serenity::Context, guild: Option<&serenity::Guild>, error: Error, )
tts_core/src/errors.rs:235
↓ 2 callers
Function
handle_unexpected_default
( ctx: &serenity::Context, name: &str, error: Error, )
tts_core/src/errors.rs:172
↓ 2 callers
Function
info_
(ctx: Context<'_>)
tts_commands/src/owner.rs:137
↓ 2 callers
Method
jump_end
(&mut self)
tts_commands/src/settings/voice_paginator/cursor.rs:48
↓ 2 callers
Method
jump_start
(&mut self)
tts_commands/src/settings/voice_paginator/cursor.rs:19
↓ 2 callers
Method
kind
(&self)
tts_core/src/structs.rs:500
↓ 2 callers
Method
load_channel_id
(&self)
tts_core/src/voice/mod.rs:79
↓ 2 callers
Function
migrate_single_to_modes
( transaction: &mut Transaction<'_>, table: &str, new_table: &str, old_column: &str, id_co
tts_migrations/src/lib.rs:13
↓ 2 callers
Method
premium_check
( &self, http: &serenity::Http, guild_id: Option<GuildId>, )
tts_core/src/structs.rs:352
↓ 2 callers
Function
send_gateway_message
(ctx: &VCContext, msg: impl Fn() -> serenity::ShardRunnerMessage)
tts_core/src/voice/mod.rs:399
↓ 2 callers
Function
show_group_description
(group: &IndexMap<&str, Vec<&Command>>)
tts_commands/src/help.rs:48
↓ 2 callers
Method
speaking_rate
(&self, user_id: UserId, mode: TTSMode)
tts_core/src/structs.rs:257
↓ 2 callers
Function
start_connection
(data: &Data, ctx: VCContext)
tts_core/src/voice/mod.rs:88
↓ 2 callers
Method
target_lang
(&self, is_premium: IsPremium)
tts_core/src/database_models.rs:75
↓ 1 callers
Function
add_ofs_role
(data: &Data, http: &serenity::Http, user_id: serenity::UserId)
tts_events/src/member.rs:18
↓ 1 callers
Function
attachments_to_format
(attachments: &[serenity::Attachment])
tts_core/src/process_msg.rs:77
↓ 1 callers
Method
bind_query_as
(self, query: QueryAs<'_, R>)
tts_core/src/database.rs:23
↓ 1 callers
Function
bool_button
(ctx: Context<'_>, value: Option<bool>)
tts_commands/src/settings/mod.rs:273
↓ 1 callers
Function
botstats
(ctx: Context<'_>)
tts_commands/src/other.rs:193
↓ 1 callers
Function
build_invite_components
Builds components for invite command and invite link in DMs This has to allocate internally due to lifetime issues with trying CPS.
tts_core/src/common.rs:17
↓ 1 callers
Function
cache_info
(ctx: Context<'_>, kind: Option<String>)
tts_commands/src/owner.rs:304
↓ 1 callers
Method
can_advance
(&self)
tts_commands/src/settings/voice_paginator/cursor.rs:40
↓ 1 callers
Method
can_rewind
(&self)
tts_commands/src/settings/voice_paginator/cursor.rs:23
↓ 1 callers
Function
can_send_partial
( guild: &serenity::Guild, channel: &serenity::GuildChannel, user_id: serenity::UserId, partia
tts_commands/src/settings/setup.rs:31
↓ 1 callers
Function
channel_type
(channel: &serenity::Channel)
tts_core/src/errors.rs:331
↓ 1 callers
Function
check_prefix
(prefix: &str)
tts_commands/src/settings/mod.rs:398
↓ 1 callers
Function
check_valid_voice
(data: &Data, code: &FixedString<u8>, mode: TTSMode)
tts_commands/src/settings/mod.rs:387
↓ 1 callers
Function
check_ws_healthy
( rng: &mut rand::rngs::SmallRng, ws_tx: &mut voice::RawWSStream, index: u8, )
src/startup.rs:152
↓ 1 callers
Function
clean
( content: &mut MessageContent<'_>, user: &serenity::User, member_nick: Option<&str>, voice:
tts_core/src/process_msg.rs:240
↓ 1 callers
Function
clear
(ctx: Context<'_>)
tts_commands/src/main_.rs:329
↓ 1 callers
Function
clear_allocator_cache
()
tts_events/src/ready.rs:15
↓ 1 callers
Function
clear_queue
( data: &Data, guild_id: serenity::GuildId, )
tts_core/src/voice/mod.rs:169
↓ 1 callers
Function
command_check
(ctx: Context<'_>)
tts_commands/src/lib.rs:163
↓ 1 callers
Function
command_func
(ctx: Context<'_>, command: Option<&str>)
tts_commands/src/help.rs:123
next →
1–100 of 274, ranked by callers