|
47 | 47 | from hikari import presences as presence_models |
48 | 48 | from hikari import sessions as gateway_models |
49 | 49 | from hikari import snowflakes |
| 50 | + from hikari import stickers as sticker_models |
50 | 51 | from hikari import templates as template_models |
51 | 52 | from hikari import users as user_models |
52 | 53 | from hikari import voices as voice_models |
@@ -1141,10 +1142,75 @@ def deserialize_invite_with_metadata(self, payload: data_binding.JSONObject) -> |
1141 | 1142 | The deserialized invite with metadata object. |
1142 | 1143 | """ |
1143 | 1144 |
|
| 1145 | + ################## |
| 1146 | + # STICKER MODELS # |
| 1147 | + ################## |
| 1148 | + |
| 1149 | + @abc.abstractmethod |
| 1150 | + def deserialize_sticker_pack(self, payload: data_binding.JSONObject) -> sticker_models.StickerPack: |
| 1151 | + """Parse a raw payload from Discord into a sticker pack object. |
| 1152 | +
|
| 1153 | + Parameters |
| 1154 | + ---------- |
| 1155 | + payload : hikari.internal.data_binding.JSONObject |
| 1156 | + The JSON payload to deserialize. |
| 1157 | +
|
| 1158 | + Returns |
| 1159 | + ------- |
| 1160 | + hikari.stickers.StickerPack |
| 1161 | + The deserialized sticker pack object. |
| 1162 | + """ |
| 1163 | + |
| 1164 | + @abc.abstractmethod |
| 1165 | + def deserialize_partial_sticker(self, payload: data_binding.JSONObject) -> sticker_models.PartialSticker: |
| 1166 | + """Parse a raw payload from Discord into a partial sticker object. |
| 1167 | +
|
| 1168 | + Parameters |
| 1169 | + ---------- |
| 1170 | + payload : hikari.internal.data_binding.JSONObject |
| 1171 | + The JSON payload to deserialize. |
| 1172 | +
|
| 1173 | + Returns |
| 1174 | + ------- |
| 1175 | + hikari.stickers.PartialSticker |
| 1176 | + The deserialized partial sticker object. |
| 1177 | + """ |
| 1178 | + |
| 1179 | + @abc.abstractmethod |
| 1180 | + def deserialize_standard_sticker(self, payload: data_binding.JSONObject) -> sticker_models.StandardSticker: |
| 1181 | + """Parse a raw payload from Discord into a standard sticker object. |
| 1182 | +
|
| 1183 | + Parameters |
| 1184 | + ---------- |
| 1185 | + payload : hikari.internal.data_binding.JSONObject |
| 1186 | + The JSON payload to deserialize. |
| 1187 | +
|
| 1188 | + Returns |
| 1189 | + ------- |
| 1190 | + hikari.stickers.StandardSticker |
| 1191 | + The deserialized standard sticker object. |
| 1192 | + """ |
| 1193 | + |
| 1194 | + @abc.abstractmethod |
| 1195 | + def deserialize_guild_sticker(self, payload: data_binding.JSONObject) -> sticker_models.GuildSticker: |
| 1196 | + """Parse a raw payload from Discord into a guild sticker object. |
| 1197 | +
|
| 1198 | + Parameters |
| 1199 | + ---------- |
| 1200 | + payload : hikari.internal.data_binding.JSONObject |
| 1201 | + The JSON payload to deserialize. |
| 1202 | +
|
| 1203 | + Returns |
| 1204 | + ------- |
| 1205 | + hikari.stickers.GuildSticker |
| 1206 | + The deserialized guild sticker object. |
| 1207 | + """ |
| 1208 | + |
1144 | 1209 | ################## |
1145 | 1210 | # MESSAGE MODELS # |
1146 | 1211 | ################## |
1147 | 1212 |
|
| 1213 | + @abc.abstractmethod |
1148 | 1214 | def deserialize_partial_message(self, payload: data_binding.JSONObject) -> message_models.PartialMessage: |
1149 | 1215 | """Parse a raw payload from Discord into a partial message object. |
1150 | 1216 |
|
|
0 commit comments