MCPcopy Create free account
hub / github.com/Botloader/botloader / make_unknown_group

Function make_unknown_group

components/scheduler/src/command_manager.rs:349–367  ·  view source on GitHub ↗
(guild_id: Id<GuildMarker>, name: String)

Source from the content-addressed store, hash-verified

347}
348
349fn make_unknown_group(guild_id: Id<GuildMarker>, name: String) -> TwilightCommand {
350 TwilightCommand {
351 application_id: None,
352 description: GROUP_DESC_PLACEHOLDER.to_string(),
353 guild_id: Some(guild_id),
354 id: None,
355 kind: TwilightCommandType::ChatInput,
356 options: Vec::new(),
357 name,
358 version: Id::new(1),
359 default_member_permissions: None,
360 dm_permission: None,
361 description_localizations: Default::default(),
362 name_localizations: Default::default(),
363 nsfw: None,
364 contexts: None,
365 integration_types: None,
366 }
367}
368
369pub fn group_to_twilight_command(
370 guild_id: Id<GuildMarker>,

Callers 1

to_twilight_commandsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected