@@ -37,7 +37,7 @@ use crate::model::prelude::*;
3737
3838#[ cfg( feature = "model" ) ]
3939impl GuildId {
40- /// Gets all auto moderation [`Rule `]s of this guild via HTTP.
40+ /// Gets all [`AutoModRule `]s of this guild via HTTP.
4141 ///
4242 /// **Note**: Requires the [Manage Guild] permission.
4343 ///
@@ -46,11 +46,11 @@ impl GuildId {
4646 /// Returns an [`Error::Http`] if the guild is unavailable.
4747 ///
4848 /// [Manage Guild]: Permissions::MANAGE_GUILD
49- pub async fn automod_rules ( self , http : & Http ) -> Result < Vec < Rule > > {
49+ pub async fn automod_rules ( self , http : & Http ) -> Result < Vec < AutoModRule > > {
5050 http. get_automod_rules ( self ) . await
5151 }
5252
53- /// Gets an auto moderation [`Rule `] of this guild by its ID via HTTP.
53+ /// Gets an [`AutoModRule `] of this guild by its ID via HTTP.
5454 ///
5555 /// **Note**: Requires the [Manage Guild] permission.
5656 ///
@@ -59,11 +59,11 @@ impl GuildId {
5959 /// Returns an [`Error::Http`] if a rule with the given ID does not exist.
6060 ///
6161 /// [Manage Guild]: Permissions::MANAGE_GUILD
62- pub async fn automod_rule ( self , http : & Http , rule_id : RuleId ) -> Result < Rule > {
62+ pub async fn automod_rule ( self , http : & Http , rule_id : RuleId ) -> Result < AutoModRule > {
6363 http. get_automod_rule ( self , rule_id) . await
6464 }
6565
66- /// Creates an auto moderation [`Rule `] in the guild.
66+ /// Creates an [`AutoModRule `] in the guild.
6767 ///
6868 /// **Note**: Requires the [Manage Guild] permission.
6969 ///
@@ -107,11 +107,11 @@ impl GuildId {
107107 self ,
108108 http : & Http ,
109109 builder : EditAutoModRule < ' _ > ,
110- ) -> Result < Rule > {
110+ ) -> Result < AutoModRule > {
111111 builder. execute ( http, self , None ) . await
112112 }
113113
114- /// Edit an auto moderation [`Rule `], given its Id.
114+ /// Edit an [`AutoModRule `], given its Id.
115115 ///
116116 /// **Note**: Requires the [Manage Guild] permission.
117117 ///
@@ -125,11 +125,11 @@ impl GuildId {
125125 http : & Http ,
126126 rule_id : RuleId ,
127127 builder : EditAutoModRule < ' _ > ,
128- ) -> Result < Rule > {
128+ ) -> Result < AutoModRule > {
129129 builder. execute ( http, self , Some ( rule_id) ) . await
130130 }
131131
132- /// Deletes an auto moderation [`Rule `] from the guild.
132+ /// Deletes an [`AutoModRule `] from the guild.
133133 ///
134134 /// **Note**: Requires the [Manage Guild] permission.
135135 ///
0 commit comments